Index: src/gpu/gl/debug/SkDebugGLContext.h |
diff --git a/src/gpu/gl/debug/SkDebugGLContext.h b/src/gpu/gl/debug/SkDebugGLContext.h |
index 113a254e0b7cc611143c2ea0e00d7eb2367e8d35..abbcf559c58af39bfd7678bb3a64874b437e0a3f 100644 |
--- a/src/gpu/gl/debug/SkDebugGLContext.h |
+++ b/src/gpu/gl/debug/SkDebugGLContext.h |
@@ -14,7 +14,10 @@ |
public: |
~SkDebugGLContext() override; |
- static SkDebugGLContext* Create() { |
+ static SkDebugGLContext* Create(GrGLStandard forcedGpuAPI) { |
+ if (kGLES_GrGLStandard == forcedGpuAPI) { |
+ return nullptr; |
+ } |
return new SkDebugGLContext; |
} |
private: |