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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 virtual void RestoreBufferBindings() const = 0; | 145 virtual void RestoreBufferBindings() const = 0; |
146 virtual void RestoreFramebufferBindings() const = 0; | 146 virtual void RestoreFramebufferBindings() const = 0; |
147 virtual void RestoreGlobalState() const = 0; | 147 virtual void RestoreGlobalState() const = 0; |
148 virtual void RestoreProgramBindings() const = 0; | 148 virtual void RestoreProgramBindings() const = 0; |
149 virtual void RestoreTextureState(unsigned service_id) const = 0; | 149 virtual void RestoreTextureState(unsigned service_id) const = 0; |
150 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; | 150 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
151 | 151 |
152 virtual void ClearAllAttributes() const = 0; | 152 virtual void ClearAllAttributes() const = 0; |
153 virtual void RestoreAllAttributes() const = 0; | 153 virtual void RestoreAllAttributes() const = 0; |
154 | 154 |
| 155 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
| 156 |
155 // Gets the QueryManager for this context. | 157 // Gets the QueryManager for this context. |
156 virtual QueryManager* GetQueryManager() = 0; | 158 virtual QueryManager* GetQueryManager() = 0; |
157 | 159 |
158 // Gets the VertexArrayManager for this context. | 160 // Gets the VertexArrayManager for this context. |
159 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 161 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
160 | 162 |
161 // Process any pending queries. Returns false if there are no pending queries. | 163 // Process any pending queries. Returns false if there are no pending queries. |
162 virtual bool ProcessPendingQueries() = 0; | 164 virtual bool ProcessPendingQueries() = 0; |
163 | 165 |
164 // Returns false if there are no idle work to be made. | 166 // Returns false if there are no idle work to be made. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 bool debug_; | 242 bool debug_; |
241 bool log_commands_; | 243 bool log_commands_; |
242 | 244 |
243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
244 }; | 246 }; |
245 | 247 |
246 } // namespace gles2 | 248 } // namespace gles2 |
247 } // namespace gpu | 249 } // namespace gpu |
248 | 250 |
249 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |