| OLD | NEW |
| 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 Loading... |
| 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 { | |
| 119 return unsafe_es3_apis_enabled_; | |
| 120 } | |
| 121 | |
| 122 void set_unsafe_es3_apis_enabled(bool enabled) { | |
| 123 unsafe_es3_apis_enabled_ = enabled; | |
| 124 } | |
| 125 | |
| 126 bool debug() const { | 118 bool debug() const { |
| 127 return debug_; | 119 return debug_; |
| 128 } | 120 } |
| 129 | 121 |
| 130 // Set to true to call glGetError after every command. | 122 // Set to true to call glGetError after every command. |
| 131 void set_debug(bool debug) { | 123 void set_debug(bool debug) { |
| 132 debug_ = debug; | 124 debug_ = debug; |
| 133 } | 125 } |
| 134 | 126 |
| 135 bool log_commands() const { | 127 bool log_commands() const { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // of commands at once, and is now only used for tests that need to track | 333 // of commands at once, and is now only used for tests that need to track |
| 342 // individual commands. | 334 // individual commands. |
| 343 error::Error DoCommand(unsigned int command, | 335 error::Error DoCommand(unsigned int command, |
| 344 unsigned int arg_count, | 336 unsigned int arg_count, |
| 345 const volatile void* cmd_data) override; | 337 const volatile void* cmd_data) override; |
| 346 | 338 |
| 347 private: | 339 private: |
| 348 bool initialized_; | 340 bool initialized_; |
| 349 bool debug_; | 341 bool debug_; |
| 350 bool log_commands_; | 342 bool log_commands_; |
| 351 bool unsafe_es3_apis_enabled_; | |
| 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 343 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 353 }; | 344 }; |
| 354 | 345 |
| 355 } // namespace gles2 | 346 } // namespace gles2 |
| 356 } // namespace gpu | 347 } // namespace gpu |
| 357 | 348 |
| 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 349 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |