diff options
author | 2012-02-10 20:05:18 +0000 | |
---|---|---|
committer | 2012-02-10 20:05:18 +0000 | |
commit | 89ec61e33daa9cbac200d38f7c5bb8b88046999a (patch) | |
tree | b2c86f053b4e466828ae6e241b3d5d7656616188 /tests | |
parent | e55fd0f188a2b0b137ddfd9728da58481e2309ef (diff) |
Add GrGLContextInfo
Review URL: http://codereview.appspot.com/5653060/
git-svn-id: http://skia.googlecode.com/svn/trunk@3162 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/GLInterfaceValidation.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp index 2be13f026c..69d26d2f28 100755 --- a/tests/GLInterfaceValidation.cpp +++ b/tests/GLInterfaceValidation.cpp @@ -51,7 +51,13 @@ static void GLInterfaceValidationTest(skiatest::Reporter* reporter) { iface.reset(interfaceFactories[i].fFactory()); REPORTER_ASSERT(reporter, NULL != iface.get()); if (iface.get()) { - REPORTER_ASSERT(reporter, iface.get()->validate()); + for (GrGLBinding binding = kNone_GrGLBinding; + binding <= kLastGrGLBinding; + binding = static_cast<GrGLBinding>(binding << 1)) { + if (iface.get()->fBindingsExported & binding) { + REPORTER_ASSERT(reporter, iface.get()->validate(binding)); + } + } } } } |