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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void RestoreAllAttributes() const = 0; | 154 virtual void RestoreAllAttributes() const = 0; |
154 | 155 |
155 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; | 156 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
156 | 157 |
157 // Gets the QueryManager for this context. | 158 // Gets the QueryManager for this context. |
158 virtual QueryManager* GetQueryManager() = 0; | 159 virtual QueryManager* GetQueryManager() = 0; |
159 | 160 |
160 // Gets the VertexArrayManager for this context. | 161 // Gets the VertexArrayManager for this context. |
161 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 162 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
162 | 163 |
| 164 // Gets the ImageManager for this context. |
| 165 virtual ImageManager* GetImageManager() = 0; |
| 166 |
163 // Process any pending queries. Returns false if there are no pending queries. | 167 // Process any pending queries. Returns false if there are no pending queries. |
164 virtual bool ProcessPendingQueries() = 0; | 168 virtual bool ProcessPendingQueries() = 0; |
165 | 169 |
166 // Returns false if there are no idle work to be made. | 170 // Returns false if there are no idle work to be made. |
167 virtual bool HasMoreIdleWork() = 0; | 171 virtual bool HasMoreIdleWork() = 0; |
168 | 172 |
169 virtual void PerformIdleWork() = 0; | 173 virtual void PerformIdleWork() = 0; |
170 | 174 |
171 // Sets a callback which is called when a glResizeCHROMIUM command | 175 // Sets a callback which is called when a glResizeCHROMIUM command |
172 // is processed. | 176 // is processed. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 bool debug_; | 246 bool debug_; |
243 bool log_commands_; | 247 bool log_commands_; |
244 | 248 |
245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 249 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
246 }; | 250 }; |
247 | 251 |
248 } // namespace gles2 | 252 } // namespace gles2 |
249 } // namespace gpu | 253 } // namespace gpu |
250 | 254 |
251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 255 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |