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

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: Fixed MediaColorTest failures on macOS Created 3 years, 8 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Capabilities GetCapabilities() override; 119 Capabilities GetCapabilities() override;
120 120
121 // Restores all of the decoder GL state. 121 // Restores all of the decoder GL state.
122 void RestoreState(const ContextState* prev_state) override; 122 void RestoreState(const ContextState* prev_state) override;
123 123
124 // Restore States. 124 // Restore States.
125 void RestoreActiveTexture() const override; 125 void RestoreActiveTexture() const override;
126 void RestoreAllTextureUnitBindings( 126 void RestoreAllTextureUnitBindings(
127 const ContextState* prev_state) const override; 127 const ContextState* prev_state) const override;
128 void RestoreActiveTextureUnitBinding(unsigned int target) const override; 128 void RestoreActiveTextureUnitBinding(unsigned int target) const override;
129 void RestoreBufferBinding(unsigned int target) const override;
129 void RestoreBufferBindings() const override; 130 void RestoreBufferBindings() const override;
130 void RestoreFramebufferBindings() const override; 131 void RestoreFramebufferBindings() const override;
131 void RestoreRenderbufferBindings() override; 132 void RestoreRenderbufferBindings() override;
132 void RestoreGlobalState() const override; 133 void RestoreGlobalState() const override;
133 void RestoreProgramBindings() const override; 134 void RestoreProgramBindings() const override;
134 void RestoreTextureState(unsigned service_id) const override; 135 void RestoreTextureState(unsigned service_id) const override;
135 void RestoreTextureUnitBindings(unsigned unit) const override; 136 void RestoreTextureUnitBindings(unsigned unit) const override;
137 void RestoreVertexAttribArray(unsigned index) override;
136 void RestoreAllExternalTextureBindingsIfNeeded() override; 138 void RestoreAllExternalTextureBindingsIfNeeded() override;
137 139
138 void ClearAllAttributes() const override; 140 void ClearAllAttributes() const override;
139 void RestoreAllAttributes() const override; 141 void RestoreAllAttributes() const override;
140 142
141 void SetIgnoreCachedStateForTest(bool ignore) override; 143 void SetIgnoreCachedStateForTest(bool ignore) override;
142 void SetForceShaderNameHashingForTest(bool force) override; 144 void SetForceShaderNameHashingForTest(bool force) override;
143 size_t GetSavedBackTextureCountForTest() override; 145 size_t GetSavedBackTextureCountForTest() override;
144 size_t GetCreatedBackTextureCountForTest() override; 146 size_t GetCreatedBackTextureCountForTest() override;
145 147
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 401
400 // Include the prototypes of all the doer functions from a separate header to 402 // Include the prototypes of all the doer functions from a separate header to
401 // keep this file clean. 403 // keep this file clean.
402 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 404 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
403 }; 405 };
404 406
405 } // namespace gles2 407 } // namespace gles2
406 } // namespace gpu 408 } // namespace gpu
407 409
408 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 410 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698