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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Gets the associated GLContext. | 136 // Gets the associated GLContext. |
137 virtual gfx::GLContext* GetGLContext() = 0; | 137 virtual gfx::GLContext* GetGLContext() = 0; |
138 | 138 |
139 // Gets the associated ContextGroup | 139 // Gets the associated ContextGroup |
140 virtual ContextGroup* GetContextGroup() = 0; | 140 virtual ContextGroup* GetContextGroup() = 0; |
141 | 141 |
142 // Gets the service id for any simulated backbuffer fbo. | 142 // Gets the service id for any simulated backbuffer fbo. |
143 virtual void RestoreState() const = 0; | 143 virtual void RestoreState() const = 0; |
144 | 144 |
| 145 // Restore States. |
| 146 virtual void RestoreActiveTexture() const = 0; |
| 147 virtual void RestoreAttribute(unsigned index) const = 0; |
| 148 virtual void RestoreBufferBindings() const = 0; |
| 149 virtual void RestoreFramebufferBindings() const = 0; |
| 150 virtual void RestoreGlobalState() const = 0; |
| 151 virtual void RestoreProgramBindings() const = 0; |
| 152 virtual void RestoreRenderbufferBindings() const = 0; |
| 153 virtual void RestoreTextureState(unsigned service_id) const = 0; |
| 154 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
| 155 |
145 // Gets the QueryManager for this context. | 156 // Gets the QueryManager for this context. |
146 virtual QueryManager* GetQueryManager() = 0; | 157 virtual QueryManager* GetQueryManager() = 0; |
147 | 158 |
148 // Gets the VertexArrayManager for this context. | 159 // Gets the VertexArrayManager for this context. |
149 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 160 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
150 | 161 |
151 // Process any pending queries. Returns false if there are no pending queries. | 162 // Process any pending queries. Returns false if there are no pending queries. |
152 virtual bool ProcessPendingQueries() = 0; | 163 virtual bool ProcessPendingQueries() = 0; |
153 | 164 |
154 // Sets a callback which is called when a glResizeCHROMIUM command | 165 // Sets a callback which is called when a glResizeCHROMIUM command |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool log_commands_; | 225 bool log_commands_; |
215 bool log_synthesized_gl_errors_; | 226 bool log_synthesized_gl_errors_; |
216 static bool testing_force_is_angle_; | 227 static bool testing_force_is_angle_; |
217 | 228 |
218 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 229 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
219 }; | 230 }; |
220 | 231 |
221 } // namespace gles2 | 232 } // namespace gles2 |
222 } // namespace gpu | 233 } // namespace gpu |
223 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 234 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |