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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 class AsyncPixelTransferDelegate; | 29 class AsyncPixelTransferDelegate; |
30 class AsyncPixelTransferManager; | 30 class AsyncPixelTransferManager; |
31 struct Mailbox; | 31 struct Mailbox; |
32 | 32 |
33 namespace gles2 { | 33 namespace gles2 { |
34 | 34 |
35 class ContextGroup; | 35 class ContextGroup; |
36 class ErrorState; | 36 class ErrorState; |
37 class GLES2Util; | 37 class GLES2Util; |
| 38 class ImageManager; |
38 class Logger; | 39 class Logger; |
39 class QueryManager; | 40 class QueryManager; |
40 class VertexArrayManager; | 41 class VertexArrayManager; |
41 struct ContextState; | 42 struct ContextState; |
42 | 43 |
43 struct DisallowedFeatures { | 44 struct DisallowedFeatures { |
44 DisallowedFeatures() | 45 DisallowedFeatures() |
45 : gpu_memory_manager(false) { | 46 : gpu_memory_manager(false) { |
46 } | 47 } |
47 | 48 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 virtual void RestoreAllAttributes() const = 0; | 160 virtual void RestoreAllAttributes() const = 0; |
160 | 161 |
161 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; | 162 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
162 | 163 |
163 // Gets the QueryManager for this context. | 164 // Gets the QueryManager for this context. |
164 virtual QueryManager* GetQueryManager() = 0; | 165 virtual QueryManager* GetQueryManager() = 0; |
165 | 166 |
166 // Gets the VertexArrayManager for this context. | 167 // Gets the VertexArrayManager for this context. |
167 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 168 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
168 | 169 |
| 170 // Gets the ImageManager for this context. |
| 171 virtual ImageManager* GetImageManager() = 0; |
| 172 |
169 // 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. |
170 virtual bool ProcessPendingQueries() = 0; | 174 virtual bool ProcessPendingQueries() = 0; |
171 | 175 |
172 // Returns false if there are no idle work to be made. | 176 // Returns false if there are no idle work to be made. |
173 virtual bool HasMoreIdleWork() = 0; | 177 virtual bool HasMoreIdleWork() = 0; |
174 | 178 |
175 virtual void PerformIdleWork() = 0; | 179 virtual void PerformIdleWork() = 0; |
176 | 180 |
177 // Sets a callback which is called when a glResizeCHROMIUM command | 181 // Sets a callback which is called when a glResizeCHROMIUM command |
178 // is processed. | 182 // is processed. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool debug_; | 252 bool debug_; |
249 bool log_commands_; | 253 bool log_commands_; |
250 | 254 |
251 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
252 }; | 256 }; |
253 | 257 |
254 } // namespace gles2 | 258 } // namespace gles2 |
255 } // namespace gpu | 259 } // namespace gpu |
256 | 260 |
257 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |