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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2762833003: gpu: Use decoder state restoration for scoped_binders (Closed)
Patch Set: Fixed MediaColorTest failures on macOS 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 6934e8bc58baacbe074b94a54cc01b6e8f939737..daea80c614cb2a422dd6fe34e07d093338a3b9cb 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -547,6 +547,9 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
void RestoreActiveTextureUnitBinding(unsigned int target) const override {
state_.RestoreActiveTextureUnitBinding(target);
}
+ void RestoreBufferBinding(unsigned int target) const override {
+ state_.RestoreBufferBinding(target);
+ }
void RestoreBufferBindings() const override {
state_.RestoreBufferBindings();
}
@@ -557,6 +560,9 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
void RestoreTextureUnitBindings(unsigned unit) const override {
state_.RestoreTextureUnitBindings(unit, NULL);
}
+ void RestoreVertexAttribArray(unsigned index) override {
+ RestoreStateForAttrib(index, true);
+ }
void RestoreFramebufferBindings() const override;
void RestoreRenderbufferBindings() override;
void RestoreTextureState(unsigned service_id) const override;

Powered by Google App Engine
This is Rietveld 408576698