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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Gets the QueryManager for this context. | 164 // Gets the QueryManager for this context. |
165 virtual QueryManager* GetQueryManager() = 0; | 165 virtual QueryManager* GetQueryManager() = 0; |
166 | 166 |
167 // Gets the VertexArrayManager for this context. | 167 // Gets the VertexArrayManager for this context. |
168 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 168 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
169 | 169 |
170 // Gets the ImageManager for this context. | 170 // Gets the ImageManager for this context. |
171 virtual ImageManager* GetImageManager() = 0; | 171 virtual ImageManager* GetImageManager() = 0; |
172 | 172 |
173 // Process any pending queries. Returns false if there are no pending queries. | 173 // Process any pending queries. Returns false if there are no pending queries. |
174 virtual bool ProcessPendingQueries() = 0; | 174 virtual bool ProcessPendingQueries(bool did_finish) = 0; |
175 | 175 |
176 // Returns false if there are no idle work to be made. | 176 // Returns false if there are no idle work to be made. |
177 virtual bool HasMoreIdleWork() = 0; | 177 virtual bool HasMoreIdleWork() = 0; |
178 | 178 |
179 virtual void PerformIdleWork() = 0; | 179 virtual void PerformIdleWork() = 0; |
180 | 180 |
181 // Sets a callback which is called when a glResizeCHROMIUM command | 181 // Sets a callback which is called when a glResizeCHROMIUM command |
182 // is processed. | 182 // is processed. |
183 virtual void SetResizeCallback( | 183 virtual void SetResizeCallback( |
184 const base::Callback<void(gfx::Size, float)>& callback) = 0; | 184 const base::Callback<void(gfx::Size, float)>& callback) = 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 bool debug_; | 252 bool debug_; |
253 bool log_commands_; | 253 bool log_commands_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace gles2 | 258 } // namespace gles2 |
259 } // namespace gpu | 259 } // namespace gpu |
260 | 260 |
261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |