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

Unified Diff: src/gpu/GrContextFactory.h

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: make it work with sampleapp Created 5 years, 4 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
Index: src/gpu/GrContextFactory.h
diff --git a/src/gpu/GrContextFactory.h b/src/gpu/GrContextFactory.h
index 7fd4b77ce0bb2f7e4c6f31c8a4bce5ace05cc540..e2dd635ccfcc042768ab1720ab11529e9fc1c3c1 100644
--- a/src/gpu/GrContextFactory.h
+++ b/src/gpu/GrContextFactory.h
@@ -34,6 +34,9 @@ public:
#if SK_ANGLE
kANGLE_GLContextType,
#endif
+#if SK_COMMAND_BUFFER
+ kCommandBuffer_GLContextType,
+#endif
#if SK_MESA
kMESA_GLContextType,
#endif
@@ -68,6 +71,10 @@ public:
case kANGLE_GLContextType:
return "angle";
#endif
+#if SK_COMMAND_BUFFER
+ case kCommandBuffer_GLContextType:
+ return "commandbuffer";
+#endif
#if SK_MESA
case kMESA_GLContextType:
return "mesa";

Powered by Google App Engine
This is Rietveld 408576698