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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: fix a bug Created 4 years, 1 month 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 <stdint.h> 10 #include <stdint.h>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 ~GLES2Decoder() override; 108 ~GLES2Decoder() override;
109 109
110 bool initialized() const { 110 bool initialized() const {
111 return initialized_; 111 return initialized_;
112 } 112 }
113 113
114 void set_initialized() { 114 void set_initialized() {
115 initialized_ = true; 115 initialized_ = true;
116 } 116 }
117 117
118 bool unsafe_es3_apis_enabled() const { 118 bool es3_apis_enabled() const {
119 return unsafe_es3_apis_enabled_; 119 return es3_apis_enabled_;
120 } 120 }
121 121
122 void set_unsafe_es3_apis_enabled(bool enabled) { 122 void set_es3_apis_enabled(bool enabled) {
123 unsafe_es3_apis_enabled_ = enabled; 123 es3_apis_enabled_ = enabled;
124 } 124 }
125 125
126 bool debug() const { 126 bool debug() const {
127 return debug_; 127 return debug_;
128 } 128 }
129 129
130 // Set to true to call glGetError after every command. 130 // Set to true to call glGetError after every command.
131 void set_debug(bool debug) { 131 void set_debug(bool debug) {
132 debug_ = debug; 132 debug_ = debug;
133 } 133 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // of commands at once, and is now only used for tests that need to track 341 // of commands at once, and is now only used for tests that need to track
342 // individual commands. 342 // individual commands.
343 error::Error DoCommand(unsigned int command, 343 error::Error DoCommand(unsigned int command,
344 unsigned int arg_count, 344 unsigned int arg_count,
345 const volatile void* cmd_data) override; 345 const volatile void* cmd_data) override;
346 346
347 private: 347 private:
348 bool initialized_; 348 bool initialized_;
349 bool debug_; 349 bool debug_;
350 bool log_commands_; 350 bool log_commands_;
351 bool unsafe_es3_apis_enabled_; 351 bool es3_apis_enabled_;
352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
353 }; 353 };
354 354
355 } // namespace gles2 355 } // namespace gles2
356 } // namespace gpu 356 } // namespace gpu
357 357
358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager_unittest.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