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

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

Issue 262793002: Revert of Optimize GLES2DecoderImpl::ApplyDirtyState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
157 // Gets the QueryManager for this context. 155 // Gets the QueryManager for this context.
158 virtual QueryManager* GetQueryManager() = 0; 156 virtual QueryManager* GetQueryManager() = 0;
159 157
160 // Gets the VertexArrayManager for this context. 158 // Gets the VertexArrayManager for this context.
161 virtual VertexArrayManager* GetVertexArrayManager() = 0; 159 virtual VertexArrayManager* GetVertexArrayManager() = 0;
162 160
163 // Process any pending queries. Returns false if there are no pending queries. 161 // Process any pending queries. Returns false if there are no pending queries.
164 virtual bool ProcessPendingQueries() = 0; 162 virtual bool ProcessPendingQueries() = 0;
165 163
166 // Returns false if there are no idle work to be made. 164 // Returns false if there are no idle work to be made.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool debug_; 240 bool debug_;
243 bool log_commands_; 241 bool log_commands_;
244 242
245 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
246 }; 244 };
247 245
248 } // namespace gles2 246 } // namespace gles2
249 } // namespace gpu 247 } // namespace gpu
250 248
251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 249 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_state_impl_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698