| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 335 |
| 336 protected: | 336 protected: |
| 337 GLES2Decoder(); | 337 GLES2Decoder(); |
| 338 | 338 |
| 339 // Decode a command, and call the corresponding GL functions. | 339 // Decode a command, and call the corresponding GL functions. |
| 340 // NOTE: DoCommand() is slower than calling DoCommands() on larger batches | 340 // NOTE: DoCommand() is slower than calling DoCommands() on larger batches |
| 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 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 unsafe_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 |