Add GrGLContextInfo
Review URL: http://codereview.appspot.com/5653060/
git-svn-id: http://skia.googlecode.com/svn/trunk@3162 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp
index 2be13f0..69d26d2 100755
--- a/tests/GLInterfaceValidation.cpp
+++ b/tests/GLInterfaceValidation.cpp
@@ -51,7 +51,13 @@
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));
+ }
+ }
}
}
}