| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Gets the QueryManager for this context. | 192 // Gets the QueryManager for this context. |
| 193 virtual QueryManager* GetQueryManager() = 0; | 193 virtual QueryManager* GetQueryManager() = 0; |
| 194 | 194 |
| 195 // Gets the VertexArrayManager for this context. | 195 // Gets the VertexArrayManager for this context. |
| 196 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 196 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 197 | 197 |
| 198 // Process any pending queries. Returns false if there are no pending queries. | 198 // Process any pending queries. Returns false if there are no pending queries. |
| 199 virtual bool ProcessPendingQueries() = 0; | 199 virtual bool ProcessPendingQueries() = 0; |
| 200 | 200 |
| 201 // Returns false if there are no idle work to be made. |
| 202 virtual bool HasMoreIdleWork() = 0; |
| 203 |
| 204 virtual void PerformIdleWork() = 0; |
| 205 |
| 201 // Sets a callback which is called when a glResizeCHROMIUM command | 206 // Sets a callback which is called when a glResizeCHROMIUM command |
| 202 // is processed. | 207 // is processed. |
| 203 virtual void SetResizeCallback( | 208 virtual void SetResizeCallback( |
| 204 const base::Callback<void(gfx::Size)>& callback) = 0; | 209 const base::Callback<void(gfx::Size)>& callback) = 0; |
| 205 | 210 |
| 206 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; | 211 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; |
| 207 | 212 |
| 208 // Interface to performing async pixel transfers. | 213 // Interface to performing async pixel transfers. |
| 209 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; | 214 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; |
| 210 virtual void SetAsyncPixelTransferDelegate( | 215 virtual void SetAsyncPixelTransferDelegate( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 bool log_commands_; | 310 bool log_commands_; |
| 306 bool log_synthesized_gl_errors_; | 311 bool log_synthesized_gl_errors_; |
| 307 static bool testing_force_is_angle_; | 312 static bool testing_force_is_angle_; |
| 308 | 313 |
| 309 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 314 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 310 }; | 315 }; |
| 311 | 316 |
| 312 } // namespace gles2 | 317 } // namespace gles2 |
| 313 } // namespace gpu | 318 } // namespace gpu |
| 314 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 319 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |