aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/iOS
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/iOS')
-rw-r--r--src/gpu/gl/iOS/SkNativeGLContext_iOS.mm8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/gl/iOS/SkNativeGLContext_iOS.mm b/src/gpu/gl/iOS/SkNativeGLContext_iOS.mm
index a276fd05da..1e11c0deb7 100644
--- a/src/gpu/gl/iOS/SkNativeGLContext_iOS.mm
+++ b/src/gpu/gl/iOS/SkNativeGLContext_iOS.mm
@@ -42,7 +42,11 @@ void SkNativeGLContext::destroyGLContext() {
[EAGLCTX release];
}
-const GrGLInterface* SkNativeGLContext::createGLContext() {
+const GrGLInterface* SkNativeGLContext::createGLContext(GrGLStandard forcedGpuAPI) {
+ if (kGL_GrGLStandard == forcedGpuAPI) {
+ return NULL;
+ }
+
fEAGLContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
[EAGLContext setCurrentContext:EAGLCTX];
@@ -61,4 +65,4 @@ void SkNativeGLContext::makeCurrent() const {
}
}
-void SkNativeGLContext::swapBuffers() const { } \ No newline at end of file
+void SkNativeGLContext::swapBuffers() const { }