Index: src/gpu/gl/android/SkNativeGLContext_android.cpp |
diff --git a/src/gpu/gl/android/SkNativeGLContext_android.cpp b/src/gpu/gl/android/SkNativeGLContext_android.cpp |
index 705bd8f49caa5cd417622098a8ee47bf76a4dd71..462109a6c4867688ac5cada88bf92701fbfd41a9 100644 |
--- a/src/gpu/gl/android/SkNativeGLContext_android.cpp |
+++ b/src/gpu/gl/android/SkNativeGLContext_android.cpp |
@@ -51,7 +51,7 @@ |
} |
} |
-const GrGLInterface* SkNativeGLContext::createGLContext(GrGLStandard forcedGpuAPI) { |
+const GrGLInterface* SkNativeGLContext::createGLContext() { |
static const EGLint kEGLContextAttribsForOpenGL[] = { |
EGL_NONE |
}; |
@@ -81,18 +81,9 @@ |
}, |
}; |
- size_t apiLimit = SK_ARRAY_COUNT(kAPIs); |
- size_t api = 0; |
- if (forcedGpuAPI == kGL_GrGLStandard) { |
- apiLimit = 1; |
- } else if (forcedGpuAPI == kGLES_GrGLStandard) { |
- api = 1; |
- } |
- SkASSERT(forcedGpuAPI == kNone_GrGLStandard || kAPIs[api].fStandard == forcedGpuAPI); |
- |
const GrGLInterface* interface = NULL; |
- for (size_t i = 0; NULL == interface && i < apiLimit; ++api) { |
+ for (size_t api = 0; NULL == interface && api < SK_ARRAY_COUNT(kAPIs); ++api) { |
fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); |
EGLint majorVersion; |