| 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 21 matching lines...) Expand all Loading... |
| 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 ImageManager; |
| 39 class Logger; | 39 class Logger; |
| 40 class QueryManager; | 40 class QueryManager; |
| 41 class VertexArrayManager; | 41 class VertexArrayManager; |
| 42 class ValuebufferManager; |
| 42 struct ContextState; | 43 struct ContextState; |
| 43 | 44 |
| 44 struct DisallowedFeatures { | 45 struct DisallowedFeatures { |
| 45 DisallowedFeatures() | 46 DisallowedFeatures() |
| 46 : gpu_memory_manager(false) { | 47 : gpu_memory_manager(false) { |
| 47 } | 48 } |
| 48 | 49 |
| 49 bool gpu_memory_manager; | 50 bool gpu_memory_manager; |
| 50 }; | 51 }; |
| 51 | 52 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 172 |
| 172 // Gets the QueryManager for this context. | 173 // Gets the QueryManager for this context. |
| 173 virtual QueryManager* GetQueryManager() = 0; | 174 virtual QueryManager* GetQueryManager() = 0; |
| 174 | 175 |
| 175 // Gets the VertexArrayManager for this context. | 176 // Gets the VertexArrayManager for this context. |
| 176 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 177 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 177 | 178 |
| 178 // Gets the ImageManager for this context. | 179 // Gets the ImageManager for this context. |
| 179 virtual ImageManager* GetImageManager() = 0; | 180 virtual ImageManager* GetImageManager() = 0; |
| 180 | 181 |
| 182 // Gets the ValuebufferManager for this context. |
| 183 virtual ValuebufferManager* GetValuebufferManager() = 0; |
| 184 |
| 181 // Process any pending queries. Returns false if there are no pending queries. | 185 // Process any pending queries. Returns false if there are no pending queries. |
| 182 virtual bool ProcessPendingQueries(bool did_finish) = 0; | 186 virtual bool ProcessPendingQueries(bool did_finish) = 0; |
| 183 | 187 |
| 184 // Returns false if there are no idle work to be made. | 188 // Returns false if there are no idle work to be made. |
| 185 virtual bool HasMoreIdleWork() = 0; | 189 virtual bool HasMoreIdleWork() = 0; |
| 186 | 190 |
| 187 virtual void PerformIdleWork() = 0; | 191 virtual void PerformIdleWork() = 0; |
| 188 | 192 |
| 189 // Sets a callback which is called when a glResizeCHROMIUM command | 193 // Sets a callback which is called when a glResizeCHROMIUM command |
| 190 // is processed. | 194 // is processed. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 bool log_commands_; | 265 bool log_commands_; |
| 262 bool unsafe_es3_apis_enabled_; | 266 bool unsafe_es3_apis_enabled_; |
| 263 | 267 |
| 264 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 265 }; | 269 }; |
| 266 | 270 |
| 267 } // namespace gles2 | 271 } // namespace gles2 |
| 268 } // namespace gpu | 272 } // namespace gpu |
| 269 | 273 |
| 270 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |