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