aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar tomhudson <tomhudson@google.com>2014-09-10 10:45:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-10 10:45:42 -0700
commit579b4fb92e78634c84670f0e09844de0478f8ffe (patch)
tree9e38534fb8b3ef5e7fdeedd752cbb45b8351e336 /src/gpu/gl
parentcc0e3110bde60201882a2c512a5cdd73c838f351 (diff)
Fix iteration bounds of Android GL API initialization
A dormant error in https://codereview.chromium.org/319043005 was exposed on some new platforms; this makes sure loop iterations are bounded. BUG= R=joshualitt@google.com, joshualitt@chromium.org Author: tomhudson@google.com Review URL: https://codereview.chromium.org/557363002
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/android/SkNativeGLContext_android.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/android/SkNativeGLContext_android.cpp b/src/gpu/gl/android/SkNativeGLContext_android.cpp
index 2e605c79db..d4d7219b5b 100644
--- a/src/gpu/gl/android/SkNativeGLContext_android.cpp
+++ b/src/gpu/gl/android/SkNativeGLContext_android.cpp
@@ -92,7 +92,7 @@ const GrGLInterface* SkNativeGLContext::createGLContext(GrGLStandard forcedGpuAP
const GrGLInterface* interface = NULL;
- for (size_t i = 0; NULL == interface && i < apiLimit; ++api) {
+ for (; NULL == interface && api < apiLimit; ++api) {
fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
EGLint majorVersion;