| 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
|
|
|