| 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 <string> | 10 #include <string> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 // Gets the VertexArrayManager for this context. | 181 // Gets the VertexArrayManager for this context. |
| 182 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 182 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 183 | 183 |
| 184 // Gets the ImageManager for this context. | 184 // Gets the ImageManager for this context. |
| 185 virtual ImageManager* GetImageManager() = 0; | 185 virtual ImageManager* GetImageManager() = 0; |
| 186 | 186 |
| 187 // Gets the ValuebufferManager for this context. | 187 // Gets the ValuebufferManager for this context. |
| 188 virtual ValuebufferManager* GetValuebufferManager() = 0; | 188 virtual ValuebufferManager* GetValuebufferManager() = 0; |
| 189 | 189 |
| 190 // Process any pending queries. Returns false if there are no pending queries. | 190 // Returns false if there are no pending queries. |
| 191 virtual bool ProcessPendingQueries(bool did_finish) = 0; | 191 virtual bool HasPendingQueries() const = 0; |
| 192 | 192 |
| 193 // Returns false if there are no idle work to be made. | 193 // Process any pending queries. |
| 194 virtual bool HasMoreIdleWork() = 0; | 194 virtual void ProcessPendingQueries(bool did_finish) = 0; |
| 195 | 195 |
| 196 // Returns false if there is no idle work to be made. |
| 197 virtual bool HasMoreIdleWork() const = 0; |
| 198 |
| 199 // Perform any idle work that needs to be made. |
| 196 virtual void PerformIdleWork() = 0; | 200 virtual void PerformIdleWork() = 0; |
| 197 | 201 |
| 198 // Sets a callback which is called when a glResizeCHROMIUM command | 202 // Sets a callback which is called when a glResizeCHROMIUM command |
| 199 // is processed. | 203 // is processed. |
| 200 virtual void SetResizeCallback( | 204 virtual void SetResizeCallback( |
| 201 const base::Callback<void(gfx::Size, float)>& callback) = 0; | 205 const base::Callback<void(gfx::Size, float)>& callback) = 0; |
| 202 | 206 |
| 203 // Get the service texture ID corresponding to a client texture ID. | 207 // Get the service texture ID corresponding to a client texture ID. |
| 204 // If no such record is found then return false. | 208 // If no such record is found then return false. |
| 205 virtual bool GetServiceTextureId(uint32 client_texture_id, | 209 virtual bool GetServiceTextureId(uint32 client_texture_id, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool log_commands_; | 266 bool log_commands_; |
| 263 bool unsafe_es3_apis_enabled_; | 267 bool unsafe_es3_apis_enabled_; |
| 264 | 268 |
| 265 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 269 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 } // namespace gles2 | 272 } // namespace gles2 |
| 269 } // namespace gpu | 273 } // namespace gpu |
| 270 | 274 |
| 271 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 275 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |