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

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

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) 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 void RestoreBufferBindings() const override { 550 void RestoreBufferBindings() const override {
551 state_.RestoreBufferBindings(); 551 state_.RestoreBufferBindings();
552 } 552 }
553 void RestoreGlobalState() const override { state_.RestoreGlobalState(NULL); } 553 void RestoreGlobalState() const override { state_.RestoreGlobalState(NULL); }
554 void RestoreProgramBindings() const override { 554 void RestoreProgramBindings() const override {
555 state_.RestoreProgramSettings(nullptr, false); 555 state_.RestoreProgramSettings(nullptr, false);
556 } 556 }
557 void RestoreTextureUnitBindings(unsigned unit) const override { 557 void RestoreTextureUnitBindings(unsigned unit) const override {
558 state_.RestoreTextureUnitBindings(unit, NULL); 558 state_.RestoreTextureUnitBindings(unit, NULL);
559 } 559 }
560 void RestoreVertexAttribArray(unsigned index) const override {
561 state_.RestoreVertexAttribArray(index);
562 }
560 void RestoreFramebufferBindings() const override; 563 void RestoreFramebufferBindings() const override;
561 void RestoreRenderbufferBindings() override; 564 void RestoreRenderbufferBindings() override;
562 void RestoreTextureState(unsigned service_id) const override; 565 void RestoreTextureState(unsigned service_id) const override;
563 566
564 void ClearAllAttributes() const override; 567 void ClearAllAttributes() const override;
565 void RestoreAllAttributes() const override; 568 void RestoreAllAttributes() const override;
566 569
567 QueryManager* GetQueryManager() override { return query_manager_.get(); } 570 QueryManager* GetQueryManager() override { return query_manager_.get(); }
568 TransformFeedbackManager* GetTransformFeedbackManager() override { 571 TransformFeedbackManager* GetTransformFeedbackManager() override {
569 return transform_feedback_manager_.get(); 572 return transform_feedback_manager_.get();
(...skipping 18923 matching lines...) Expand 10 before | Expand all | Expand 10 after
19493 } 19496 }
19494 19497
19495 // Include the auto-generated part of this file. We split this because it means 19498 // Include the auto-generated part of this file. We split this because it means
19496 // we can easily edit the non-auto generated parts right here in this file 19499 // we can easily edit the non-auto generated parts right here in this file
19497 // instead of having to edit some template or the code generator. 19500 // instead of having to edit some template or the code generator.
19498 #include "base/macros.h" 19501 #include "base/macros.h"
19499 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19502 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19500 19503
19501 } // namespace gles2 19504 } // namespace gles2
19502 } // namespace gpu 19505 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698