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

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

Issue 2762833003: gpu: Use decoder state restoration for scoped_binders (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 GLES2DecoderPassthroughImpl class. 5 // This file contains the GLES2DecoderPassthroughImpl class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void RestoreAllTextureUnitBindings( 114 void RestoreAllTextureUnitBindings(
115 const ContextState* prev_state) const override; 115 const ContextState* prev_state) const override;
116 void RestoreActiveTextureUnitBinding(unsigned int target) const override; 116 void RestoreActiveTextureUnitBinding(unsigned int target) const override;
117 void RestoreBufferBindings() const override; 117 void RestoreBufferBindings() const override;
118 void RestoreFramebufferBindings() const override; 118 void RestoreFramebufferBindings() const override;
119 void RestoreRenderbufferBindings() override; 119 void RestoreRenderbufferBindings() override;
120 void RestoreGlobalState() const override; 120 void RestoreGlobalState() const override;
121 void RestoreProgramBindings() const override; 121 void RestoreProgramBindings() const override;
122 void RestoreTextureState(unsigned service_id) const override; 122 void RestoreTextureState(unsigned service_id) const override;
123 void RestoreTextureUnitBindings(unsigned unit) const override; 123 void RestoreTextureUnitBindings(unsigned unit) const override;
124 void RestoreVertexAttribArray(unsigned index) const override;
124 void RestoreAllExternalTextureBindingsIfNeeded() override; 125 void RestoreAllExternalTextureBindingsIfNeeded() override;
125 126
126 void ClearAllAttributes() const override; 127 void ClearAllAttributes() const override;
127 void RestoreAllAttributes() const override; 128 void RestoreAllAttributes() const override;
128 129
129 void SetIgnoreCachedStateForTest(bool ignore) override; 130 void SetIgnoreCachedStateForTest(bool ignore) override;
130 void SetForceShaderNameHashingForTest(bool force) override; 131 void SetForceShaderNameHashingForTest(bool force) override;
131 size_t GetSavedBackTextureCountForTest() override; 132 size_t GetSavedBackTextureCountForTest() override;
132 size_t GetCreatedBackTextureCountForTest() override; 133 size_t GetCreatedBackTextureCountForTest() override;
133 134
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 384
384 // Include the prototypes of all the doer functions from a separate header to 385 // Include the prototypes of all the doer functions from a separate header to
385 // keep this file clean. 386 // keep this file clean.
386 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 387 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
387 }; 388 };
388 389
389 } // namespace gles2 390 } // namespace gles2
390 } // namespace gpu 391 } // namespace gpu
391 392
392 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 393 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698