Index: include/gpu/gl/command_buffer/SkCommandBufferGLContext.h |
diff --git a/include/gpu/gl/command_buffer/SkCommandBufferGLContext.h b/include/gpu/gl/command_buffer/SkCommandBufferGLContext.h |
index 47f3fd967a3b665217864a8d24690452e20751bd..7fece3c83c1a43eb7fd4d85bcfa0e08ae4fa7e51 100644 |
--- a/include/gpu/gl/command_buffer/SkCommandBufferGLContext.h |
+++ b/include/gpu/gl/command_buffer/SkCommandBufferGLContext.h |
@@ -16,7 +16,10 @@ |
public: |
~SkCommandBufferGLContext() override; |
- static SkCommandBufferGLContext* Create() { |
+ static SkCommandBufferGLContext* Create(GrGLStandard forcedGpuAPI) { |
+ if (kGL_GrGLStandard == forcedGpuAPI) { |
+ return nullptr; |
+ } |
SkCommandBufferGLContext* ctx = new SkCommandBufferGLContext; |
if (!ctx->isValid()) { |
delete ctx; |