| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 // Process any pending queries. | 231 // Process any pending queries. |
| 232 virtual void ProcessPendingQueries(bool did_finish) = 0; | 232 virtual void ProcessPendingQueries(bool did_finish) = 0; |
| 233 | 233 |
| 234 // Returns false if there is no idle work to be made. | 234 // Returns false if there is no idle work to be made. |
| 235 virtual bool HasMoreIdleWork() const = 0; | 235 virtual bool HasMoreIdleWork() const = 0; |
| 236 | 236 |
| 237 // Perform any idle work that needs to be made. | 237 // Perform any idle work that needs to be made. |
| 238 virtual void PerformIdleWork() = 0; | 238 virtual void PerformIdleWork() = 0; |
| 239 | 239 |
| 240 // Whether there is state that needs to be regularly polled. |
| 241 virtual bool HasPollingWork() const = 0; |
| 242 |
| 243 // Perform necessary polling. |
| 244 virtual void PerformPollingWork() = 0; |
| 245 |
| 240 // Get the service texture ID corresponding to a client texture ID. | 246 // Get the service texture ID corresponding to a client texture ID. |
| 241 // If no such record is found then return false. | 247 // If no such record is found then return false. |
| 242 virtual bool GetServiceTextureId(uint32_t client_texture_id, | 248 virtual bool GetServiceTextureId(uint32_t client_texture_id, |
| 243 uint32_t* service_texture_id); | 249 uint32_t* service_texture_id); |
| 244 | 250 |
| 245 // Provides detail about a lost context if one occurred. | 251 // Provides detail about a lost context if one occurred. |
| 246 virtual error::ContextLostReason GetContextLostReason() = 0; | 252 virtual error::ContextLostReason GetContextLostReason() = 0; |
| 247 | 253 |
| 248 // Clears a level sub area of a 2D texture. | 254 // Clears a level sub area of a 2D texture. |
| 249 // Returns false if a GL error should be generated. | 255 // Returns false if a GL error should be generated. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 bool debug_; | 345 bool debug_; |
| 340 bool log_commands_; | 346 bool log_commands_; |
| 341 bool unsafe_es3_apis_enabled_; | 347 bool unsafe_es3_apis_enabled_; |
| 342 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 348 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 343 }; | 349 }; |
| 344 | 350 |
| 345 } // namespace gles2 | 351 } // namespace gles2 |
| 346 } // namespace gpu | 352 } // namespace gpu |
| 347 | 353 |
| 348 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 354 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |