diff --git a/include/gpu/GrGLInterface.h b/include/gpu/GrGLInterface.h index fa284d4a97..1b8b3be979 100644 --- a/include/gpu/GrGLInterface.h +++ b/include/gpu/GrGLInterface.h @@ -31,6 +31,7 @@ enum GrGLBinding { kES2_GrGLBinding = 0x02, // for iteration of GrGLBindings + kFirstGrGLBinding = kDesktop_GrGLBinding, kLastGrGLBinding = kES2_GrGLBinding }; diff --git a/tests/GLInterfaceValidation.cpp b/tests/GLInterfaceValidation.cpp index 69d26d2f28..2557c4c71c 100755 --- a/tests/GLInterfaceValidation.cpp +++ b/tests/GLInterfaceValidation.cpp @@ -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(binding << 1)) { if (iface.get()->fBindingsExported & binding) {