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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/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);
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698