Fix dumb error of starting loop with 0 instead of 1 that uses shift to increment.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 10 Feb 2012 20:25:36 +0000 (20:25 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 10 Feb 2012 20:25:36 +0000 (20:25 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@3163 2bbb7eff-a529-9590-31e7-b0007b416f81

include/gpu/GrGLInterface.h
tests/GLInterfaceValidation.cpp

index fa284d4..1b8b3be 100644 (file)
@@ -31,6 +31,7 @@ enum GrGLBinding {
     kES2_GrGLBinding = 0x02,
 
     // for iteration of GrGLBindings
+    kFirstGrGLBinding = kDesktop_GrGLBinding,
     kLastGrGLBinding = kES2_GrGLBinding
 };
 
index 69d26d2..2557c4c 100755 (executable)
@@ -51,7 +51,7 @@ static void GLInterfaceValidationTest(skiatest::Reporter* reporter) {
         iface.reset(interfaceFactories[i].fFactory());
         REPORTER_ASSERT(reporter, NULL != iface.get());
         if (iface.get()) {
-            for (GrGLBinding binding = kNone_GrGLBinding; 
+            for (GrGLBinding binding = kFirstGrGLBinding;
                  binding <= kLastGrGLBinding;
                  binding = static_cast<GrGLBinding>(binding << 1)) {
                 if (iface.get()->fBindingsExported & binding) {