| 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 <vector> | 10 #include <vector> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 virtual ErrorState* GetErrorState() = 0; | 208 virtual ErrorState* GetErrorState() = 0; |
| 209 | 209 |
| 210 // A callback for messages from the decoder. | 210 // A callback for messages from the decoder. |
| 211 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0; | 211 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0; |
| 212 | 212 |
| 213 // Sets the callback for waiting on a sync point. The callback returns the | 213 // Sets the callback for waiting on a sync point. The callback returns the |
| 214 // scheduling status (i.e. true if the channel is still scheduled). | 214 // scheduling status (i.e. true if the channel is still scheduled). |
| 215 virtual void SetWaitSyncPointCallback( | 215 virtual void SetWaitSyncPointCallback( |
| 216 const WaitSyncPointCallback& callback) = 0; | 216 const WaitSyncPointCallback& callback) = 0; |
| 217 | 217 |
| 218 virtual void WaitForReadPixels(base::Closure callback) = 0; |
| 218 virtual uint32 GetTextureUploadCount() = 0; | 219 virtual uint32 GetTextureUploadCount() = 0; |
| 219 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; | 220 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; |
| 220 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; | 221 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; |
| 221 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; | 222 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; |
| 222 | 223 |
| 223 // Returns true if the context was just lost due to e.g. GL_ARB_robustness. | 224 // Returns true if the context was just lost due to e.g. GL_ARB_robustness. |
| 224 virtual bool WasContextLost() = 0; | 225 virtual bool WasContextLost() = 0; |
| 225 | 226 |
| 226 // Lose this context. | 227 // Lose this context. |
| 227 virtual void LoseContext(uint32 reset_status) = 0; | 228 virtual void LoseContext(uint32 reset_status) = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 241 bool debug_; | 242 bool debug_; |
| 242 bool log_commands_; | 243 bool log_commands_; |
| 243 static bool testing_force_is_angle_; | 244 static bool testing_force_is_angle_; |
| 244 | 245 |
| 245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 246 }; | 247 }; |
| 247 | 248 |
| 248 } // namespace gles2 | 249 } // namespace gles2 |
| 249 } // namespace gpu | 250 } // namespace gpu |
| 250 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |