Index: gpu/command_buffer/service/gles2_cmd_decoder.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h |
index 63618c2a2da03724e96efc202f940c6c9b40de36..670ce751bf9a3bca57fc89d46b868acd1402c7cc 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h |
@@ -39,6 +39,7 @@ class ImageManager; |
class Logger; |
class QueryManager; |
class VertexArrayManager; |
+class ValuebufferManager; |
struct ContextState; |
struct DisallowedFeatures { |
@@ -78,6 +79,14 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
initialized_ = true; |
} |
+ bool unsafe_es3_apis_enabled() const { |
+ return unsafe_es3_apis_enabled_; |
+ } |
+ |
+ void set_unsafe_es3_apis_enabled(bool enabled) { |
+ unsafe_es3_apis_enabled_ = enabled; |
+ } |
+ |
bool debug() const { |
return debug_; |
} |
@@ -170,6 +179,9 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
// Gets the ImageManager for this context. |
virtual ImageManager* GetImageManager() = 0; |
+ // Gets the ValuebufferManager for this context. |
+ virtual ValuebufferManager* GetValuebufferManager() = 0; |
+ |
// Process any pending queries. Returns false if there are no pending queries. |
virtual bool ProcessPendingQueries(bool did_finish) = 0; |
@@ -251,6 +263,7 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
bool initialized_; |
bool debug_; |
bool log_commands_; |
+ bool unsafe_es3_apis_enabled_; |
DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
}; |