diff options
Diffstat (limited to 'src/gpu/GrContextFactory.cpp')
-rwxr-xr-x | src/gpu/GrContextFactory.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp index d84e589f84..0fe01df16b 100755 --- a/src/gpu/GrContextFactory.cpp +++ b/src/gpu/GrContextFactory.cpp @@ -11,6 +11,9 @@ #if SK_ANGLE #include "gl/angle/SkANGLEGLContext.h" #endif +#if SK_COMMAND_BUFFER + #include "gl/command_buffer/SkCommandBufferGLContext.h" +#endif #include "gl/debug/SkDebugGLContext.h" #if SK_MESA #include "gl/mesa/SkMesaGLContext.h" @@ -43,6 +46,11 @@ GrContext* GrContextFactory::get(GLContextType type, GrGLStandard forcedGpuAPI) glCtx.reset(SkANGLEGLContext::Create(forcedGpuAPI)); break; #endif +#ifdef SK_COMMAND_BUFFER + case kCommandBuffer_GLContextType: + glCtx.reset(SkCommandBufferGLContext::Create(forcedGpuAPI)); + break; +#endif #ifdef SK_MESA case kMESA_GLContextType: glCtx.reset(SkMesaGLContext::Create(forcedGpuAPI)); |