From: bsalomon@google.com Date: Fri, 10 Feb 2012 20:25:36 +0000 (+0000) Subject: Fix dumb error of starting loop with 0 instead of 1 that uses shift to increment. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~16862 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b447d215772a5984dc776a8dc058e0711d566c04;p=platform%2Fupstream%2FlibSkiaSharp.git Fix dumb error of starting loop with 0 instead of 1 that uses shift to increment. git-svn-id: http://skia.googlecode.com/svn/trunk@3163 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/include/gpu/GrGLInterface.h b/include/gpu/GrGLInterface.h index fa284d4..1b8b3be 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 69d26d2..2557c4c 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) {