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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual ErrorState* GetErrorState() = 0; | 206 virtual ErrorState* GetErrorState() = 0; |
207 | 207 |
208 // A callback for messages from the decoder. | 208 // A callback for messages from the decoder. |
209 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0; | 209 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0; |
210 | 210 |
211 // Sets the callback for waiting on a sync point. The callback returns the | 211 // Sets the callback for waiting on a sync point. The callback returns the |
212 // scheduling status (i.e. true if the channel is still scheduled). | 212 // scheduling status (i.e. true if the channel is still scheduled). |
213 virtual void SetWaitSyncPointCallback( | 213 virtual void SetWaitSyncPointCallback( |
214 const WaitSyncPointCallback& callback) = 0; | 214 const WaitSyncPointCallback& callback) = 0; |
215 | 215 |
| 216 virtual void WaitForReadPixels(base::Closure callback) = 0; |
216 virtual uint32 GetTextureUploadCount() = 0; | 217 virtual uint32 GetTextureUploadCount() = 0; |
217 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; | 218 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; |
218 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; | 219 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; |
219 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; | 220 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; |
220 | 221 |
221 // Returns true if the context was lost either by GL_ARB_robustness, forced | 222 // Returns true if the context was lost either by GL_ARB_robustness, forced |
222 // context loss or command buffer parse error. | 223 // context loss or command buffer parse error. |
223 virtual bool WasContextLost() = 0; | 224 virtual bool WasContextLost() = 0; |
224 | 225 |
225 // Returns true if the context was lost specifically by GL_ARB_robustness. | 226 // Returns true if the context was lost specifically by GL_ARB_robustness. |
(...skipping 17 matching lines...) Expand all Loading... |
243 bool debug_; | 244 bool debug_; |
244 bool log_commands_; | 245 bool log_commands_; |
245 static bool testing_force_is_angle_; | 246 static bool testing_force_is_angle_; |
246 | 247 |
247 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 248 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
248 }; | 249 }; |
249 | 250 |
250 } // namespace gles2 | 251 } // namespace gles2 |
251 } // namespace gpu | 252 } // namespace gpu |
252 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 253 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |