Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: src/gpu/GrContextFactory.cpp

Issue 1684413003: Implement support for using GL ES 3.0 with command buffer (Closed) Base URL: https://skia.googlesource.com/skia.git@no-texture-rectangle-gles
Patch Set: comment wording Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrContextFactory.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContextFactory.cpp
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp
index b7e48254c881af6835b8c6e195b3a8c2ee1a69a7..3f7fd4abd914cc5bd2430dad4c3a9f93d9bd4d5f 100755
--- a/src/gpu/GrContextFactory.cpp
+++ b/src/gpu/GrContextFactory.cpp
@@ -95,8 +95,11 @@ GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType typ
break;
#endif
#if SK_COMMAND_BUFFER
- case kCommandBuffer_GLContextType:
- glCtx.reset(SkCommandBufferGLContext::Create());
+ case kCommandBufferES2_GLContextType:
+ glCtx.reset(SkCommandBufferGLContext::CreateES2());
+ break;
+ case kCommandBufferES3_GLContextType:
+ glCtx.reset(SkCommandBufferGLContext::CreateES3());
break;
#endif
#if SK_MESA
« no previous file with comments | « src/gpu/GrContextFactory.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698