| 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 11 matching lines...) Expand all Loading... |
| 22 namespace gfx { | 22 namespace gfx { |
| 23 class GLContext; | 23 class GLContext; |
| 24 class GLSurface; | 24 class GLSurface; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace gpu { | 27 namespace gpu { |
| 28 | 28 |
| 29 class AsyncPixelTransferDelegate; | 29 class AsyncPixelTransferDelegate; |
| 30 class AsyncPixelTransferManager; | 30 class AsyncPixelTransferManager; |
| 31 struct Mailbox; | 31 struct Mailbox; |
| 32 union ValueState; |
| 32 | 33 |
| 33 namespace gles2 { | 34 namespace gles2 { |
| 34 | 35 |
| 35 class ContextGroup; | 36 class ContextGroup; |
| 36 class ErrorState; | 37 class ErrorState; |
| 37 class GLES2Util; | 38 class GLES2Util; |
| 38 class ImageManager; | 39 class ImageManager; |
| 39 class Logger; | 40 class Logger; |
| 40 class QueryManager; | 41 class QueryManager; |
| 41 class VertexArrayManager; | 42 class VertexArrayManager; |
| 43 class ValuebufferManager; |
| 42 struct ContextState; | 44 struct ContextState; |
| 43 | 45 |
| 44 struct DisallowedFeatures { | 46 struct DisallowedFeatures { |
| 45 DisallowedFeatures() | 47 DisallowedFeatures() |
| 46 : gpu_memory_manager(false) { | 48 : gpu_memory_manager(false) { |
| 47 } | 49 } |
| 48 | 50 |
| 49 bool gpu_memory_manager; | 51 bool gpu_memory_manager; |
| 50 }; | 52 }; |
| 51 | 53 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 165 |
| 164 // Gets the QueryManager for this context. | 166 // Gets the QueryManager for this context. |
| 165 virtual QueryManager* GetQueryManager() = 0; | 167 virtual QueryManager* GetQueryManager() = 0; |
| 166 | 168 |
| 167 // Gets the VertexArrayManager for this context. | 169 // Gets the VertexArrayManager for this context. |
| 168 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 170 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 169 | 171 |
| 170 // Gets the ImageManager for this context. | 172 // Gets the ImageManager for this context. |
| 171 virtual ImageManager* GetImageManager() = 0; | 173 virtual ImageManager* GetImageManager() = 0; |
| 172 | 174 |
| 175 // Gets the ValuebufferManager for this context |
| 176 virtual ValuebufferManager* GetValuebufferManager() = 0; |
| 177 |
| 173 // Process any pending queries. Returns false if there are no pending queries. | 178 // Process any pending queries. Returns false if there are no pending queries. |
| 174 virtual bool ProcessPendingQueries() = 0; | 179 virtual bool ProcessPendingQueries() = 0; |
| 175 | 180 |
| 176 // Returns false if there are no idle work to be made. | 181 // Returns false if there are no idle work to be made. |
| 177 virtual bool HasMoreIdleWork() = 0; | 182 virtual bool HasMoreIdleWork() = 0; |
| 178 | 183 |
| 179 virtual void PerformIdleWork() = 0; | 184 virtual void PerformIdleWork() = 0; |
| 180 | 185 |
| 181 // Sets a callback which is called when a glResizeCHROMIUM command | 186 // Sets a callback which is called when a glResizeCHROMIUM command |
| 182 // is processed. | 187 // is processed. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 bool debug_; | 257 bool debug_; |
| 253 bool log_commands_; | 258 bool log_commands_; |
| 254 | 259 |
| 255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 260 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 256 }; | 261 }; |
| 257 | 262 |
| 258 } // namespace gles2 | 263 } // namespace gles2 |
| 259 } // namespace gpu | 264 } // namespace gpu |
| 260 | 265 |
| 261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 266 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |