| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 // Gets the QueryManager for this context. | 157 // Gets the QueryManager for this context. |
| 158 virtual QueryManager* GetQueryManager() = 0; | 158 virtual QueryManager* GetQueryManager() = 0; |
| 159 | 159 |
| 160 // Gets the VertexArrayManager for this context. | 160 // Gets the VertexArrayManager for this context. |
| 161 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 161 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 162 | 162 |
| 163 // Process any pending queries. Returns false if there are no pending queries. | 163 // Process any pending queries. Returns false if there are no pending queries. |
| 164 virtual bool ProcessPendingQueries() = 0; | 164 virtual bool ProcessPendingQueries() = 0; |
| 165 | 165 |
| 166 // Returns false if there are no pending queries or idle tasks to be made. |
| 167 virtual bool HasMoreWork() = 0; |
| 168 |
| 169 // Idle work handler. Returns false if there is no pending idle work. |
| 170 virtual bool PerformIdleWork() = 0; |
| 171 |
| 166 // Sets a callback which is called when a glResizeCHROMIUM command | 172 // Sets a callback which is called when a glResizeCHROMIUM command |
| 167 // is processed. | 173 // is processed. |
| 168 virtual void SetResizeCallback( | 174 virtual void SetResizeCallback( |
| 169 const base::Callback<void(gfx::Size)>& callback) = 0; | 175 const base::Callback<void(gfx::Size)>& callback) = 0; |
| 170 | 176 |
| 171 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; | 177 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; |
| 172 | 178 |
| 173 // Interface to performing async pixel transfers. | 179 // Interface to performing async pixel transfers. |
| 174 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; | 180 virtual gfx::AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; |
| 175 virtual void SetAsyncPixelTransferDelegate( | 181 virtual void SetAsyncPixelTransferDelegate( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 bool log_commands_; | 266 bool log_commands_; |
| 261 bool log_synthesized_gl_errors_; | 267 bool log_synthesized_gl_errors_; |
| 262 static bool testing_force_is_angle_; | 268 static bool testing_force_is_angle_; |
| 263 | 269 |
| 264 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 270 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 265 }; | 271 }; |
| 266 | 272 |
| 267 } // namespace gles2 | 273 } // namespace gles2 |
| 268 } // namespace gpu | 274 } // namespace gpu |
| 269 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 275 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |