| 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 { | 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 Loading... |
| 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_ |
| OLD | NEW |