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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 32
33 namespace gles2 { 33 namespace gles2 {
34 34
35 class ContextGroup; 35 class ContextGroup;
36 class ErrorState; 36 class ErrorState;
37 class GLES2Util; 37 class GLES2Util;
38 class ImageManager; 38 class ImageManager;
39 class Logger; 39 class Logger;
40 class QueryManager; 40 class QueryManager;
41 class VertexArrayManager; 41 class VertexArrayManager;
42 class ValuebufferManager;
42 struct ContextState; 43 struct ContextState;
43 44
44 struct DisallowedFeatures { 45 struct DisallowedFeatures {
45 DisallowedFeatures() 46 DisallowedFeatures()
46 : gpu_memory_manager(false) { 47 : gpu_memory_manager(false) {
47 } 48 }
48 49
49 bool gpu_memory_manager; 50 bool gpu_memory_manager;
50 }; 51 };
51 52
(...skipping 19 matching lines...) Expand all
71 ~GLES2Decoder() override; 72 ~GLES2Decoder() override;
72 73
73 bool initialized() const { 74 bool initialized() const {
74 return initialized_; 75 return initialized_;
75 } 76 }
76 77
77 void set_initialized() { 78 void set_initialized() {
78 initialized_ = true; 79 initialized_ = true;
79 } 80 }
80 81
82 bool unsafe_es3_apis_enabled() const {
83 return unsafe_es3_apis_enabled_;
84 }
85
86 void set_unsafe_es3_apis_enabled(bool enabled) {
87 unsafe_es3_apis_enabled_ = enabled;
88 }
89
81 bool debug() const { 90 bool debug() const {
82 return debug_; 91 return debug_;
83 } 92 }
84 93
85 // Set to true to call glGetError after every command. 94 // Set to true to call glGetError after every command.
86 void set_debug(bool debug) { 95 void set_debug(bool debug) {
87 debug_ = debug; 96 debug_ = debug;
88 } 97 }
89 98
90 bool log_commands() const { 99 bool log_commands() const {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 172
164 // Gets the QueryManager for this context. 173 // Gets the QueryManager for this context.
165 virtual QueryManager* GetQueryManager() = 0; 174 virtual QueryManager* GetQueryManager() = 0;
166 175
167 // Gets the VertexArrayManager for this context. 176 // Gets the VertexArrayManager for this context.
168 virtual VertexArrayManager* GetVertexArrayManager() = 0; 177 virtual VertexArrayManager* GetVertexArrayManager() = 0;
169 178
170 // Gets the ImageManager for this context. 179 // Gets the ImageManager for this context.
171 virtual ImageManager* GetImageManager() = 0; 180 virtual ImageManager* GetImageManager() = 0;
172 181
182 // Gets the ValuebufferManager for this context.
183 virtual ValuebufferManager* GetValuebufferManager() = 0;
184
173 // Process any pending queries. Returns false if there are no pending queries. 185 // Process any pending queries. Returns false if there are no pending queries.
174 virtual bool ProcessPendingQueries(bool did_finish) = 0; 186 virtual bool ProcessPendingQueries(bool did_finish) = 0;
175 187
176 // Returns false if there are no idle work to be made. 188 // Returns false if there are no idle work to be made.
177 virtual bool HasMoreIdleWork() = 0; 189 virtual bool HasMoreIdleWork() = 0;
178 190
179 virtual void PerformIdleWork() = 0; 191 virtual void PerformIdleWork() = 0;
180 192
181 // Sets a callback which is called when a glResizeCHROMIUM command 193 // Sets a callback which is called when a glResizeCHROMIUM command
182 // is processed. 194 // is processed.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 256
245 virtual const ContextState* GetContextState() = 0; 257 virtual const ContextState* GetContextState() = 0;
246 258
247 protected: 259 protected:
248 GLES2Decoder(); 260 GLES2Decoder();
249 261
250 private: 262 private:
251 bool initialized_; 263 bool initialized_;
252 bool debug_; 264 bool debug_;
253 bool log_commands_; 265 bool log_commands_;
266 bool unsafe_es3_apis_enabled_;
254 267
255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
256 }; 269 };
257 270
258 } // namespace gles2 271 } // namespace gles2
259 } // namespace gpu 272 } // namespace gpu
260 273
261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« 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