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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 1325433003: command_buffer: Add support for creating non-WebGL ES 3 contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: gpu/command_buffer/common/gles2_cmd_utils.h
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.h b/gpu/command_buffer/common/gles2_cmd_utils.h
index 3e25c6f9767a4277bb29fc0c457dae97cce37d69..0ce83d30fe101ecff693be41772fbcfc4aa08e2e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -206,6 +206,13 @@ class GLES2_UTILS_EXPORT GLES2Util {
int num_shader_binary_formats_;
};
+enum ContextType {
+ CONTEXT_TYPE_WEBGL1,
+ CONTEXT_TYPE_WEBGL2,
+ CONTEXT_TYPE_OPENGLES2,
+ CONTEXT_TYPE_OPENGLES3
+};
+
struct GLES2_UTILS_EXPORT ContextCreationAttribHelper {
ContextCreationAttribHelper();
@@ -225,8 +232,7 @@ struct GLES2_UTILS_EXPORT ContextCreationAttribHelper {
bool bind_generates_resource;
bool fail_if_major_perf_caveat;
bool lose_context_when_out_of_memory;
- // 0 if not a WebGL context.
- unsigned webgl_version;
+ ContextType context_type;
};
} // namespace gles2

Powered by Google App Engine
This is Rietveld 408576698