Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 12321068: Add GL State Restoring Functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698