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

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

Issue 1925663002: command_buffer: Defer restoring of FBO bindings when changing virtual contexts Base URL: https://chromium.googlesource.com/chromium/src.git@lazy-bindframebuffer-03-copy-texture-chromium-instantiation
Patch Set: rework Created 4 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 <stdint.h> 10 #include <stdint.h>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Restores all of the decoder GL state. 180 // Restores all of the decoder GL state.
181 virtual void RestoreState(const ContextState* prev_state) = 0; 181 virtual void RestoreState(const ContextState* prev_state) = 0;
182 182
183 // Restore States. 183 // Restore States.
184 virtual void RestoreActiveTexture() const = 0; 184 virtual void RestoreActiveTexture() const = 0;
185 virtual void RestoreAllTextureUnitBindings( 185 virtual void RestoreAllTextureUnitBindings(
186 const ContextState* prev_state) const = 0; 186 const ContextState* prev_state) const = 0;
187 virtual void RestoreActiveTextureUnitBinding(unsigned int target) const = 0; 187 virtual void RestoreActiveTextureUnitBinding(unsigned int target) const = 0;
188 virtual void RestoreBufferBindings() const = 0; 188 virtual void RestoreBufferBindings() const = 0;
189 virtual void RestoreFramebufferBindings() const = 0; 189 virtual void MarkFramebufferBindingsChanged() = 0;
190 virtual void RestoreRenderbufferBindings() = 0; 190 virtual void RestoreRenderbufferBindings() = 0;
191 virtual void RestoreGlobalState() const = 0; 191 virtual void RestoreGlobalState() const = 0;
192 virtual void RestoreProgramBindings() const = 0; 192 virtual void RestoreProgramBindings() const = 0;
193 virtual void RestoreTextureState(unsigned service_id) const = 0; 193 virtual void RestoreTextureState(unsigned service_id) const = 0;
194 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; 194 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0;
195 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0; 195 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0;
196 196
197 virtual void ClearAllAttributes() const = 0; 197 virtual void ClearAllAttributes() const = 0;
198 virtual void RestoreAllAttributes() const = 0; 198 virtual void RestoreAllAttributes() const = 0;
199 199
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool log_commands_; 297 bool log_commands_;
298 bool unsafe_es3_apis_enabled_; 298 bool unsafe_es3_apis_enabled_;
299 bool force_shader_name_hashing_for_test_; 299 bool force_shader_name_hashing_for_test_;
300 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 300 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
301 }; 301 };
302 302
303 } // namespace gles2 303 } // namespace gles2
304 } // namespace gpu 304 } // namespace gpu
305 305
306 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 306 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698