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

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

Issue 2837213003: Restore samplers' state across virtualized GL contexts. (Closed)
Patch Set: Add unit tests covering restoration of sampler state. Created 3 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 #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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 GLES2Util* GetGLES2Util() override { return &util_; } 533 GLES2Util* GetGLES2Util() override { return &util_; }
534 gl::GLContext* GetGLContext() override { return context_.get(); } 534 gl::GLContext* GetGLContext() override { return context_.get(); }
535 ContextGroup* GetContextGroup() override { return group_.get(); } 535 ContextGroup* GetContextGroup() override { return group_.get(); }
536 const FeatureInfo* GetFeatureInfo() const override { 536 const FeatureInfo* GetFeatureInfo() const override {
537 return feature_info_.get(); 537 return feature_info_.get();
538 } 538 }
539 Capabilities GetCapabilities() override; 539 Capabilities GetCapabilities() override;
540 void RestoreState(const ContextState* prev_state) override; 540 void RestoreState(const ContextState* prev_state) override;
541 541
542 void RestoreActiveTexture() const override { state_.RestoreActiveTexture(); } 542 void RestoreActiveTexture() const override { state_.RestoreActiveTexture(); }
543 void RestoreAllTextureUnitBindings( 543 void RestoreAllTextureUnitAndSamplerBindings(
544 const ContextState* prev_state) const override { 544 const ContextState* prev_state) const override {
545 state_.RestoreAllTextureUnitBindings(prev_state); 545 state_.RestoreAllTextureUnitAndSamplerBindings(prev_state);
546 } 546 }
547 void RestoreActiveTextureUnitBinding(unsigned int target) const override { 547 void RestoreActiveTextureUnitBinding(unsigned int target) const override {
548 state_.RestoreActiveTextureUnitBinding(target); 548 state_.RestoreActiveTextureUnitBinding(target);
549 } 549 }
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);
(...skipping 19076 matching lines...) Expand 10 before | Expand all | Expand 10 after
19632 } 19632 }
19633 19633
19634 // Include the auto-generated part of this file. We split this because it means 19634 // Include the auto-generated part of this file. We split this because it means
19635 // we can easily edit the non-auto generated parts right here in this file 19635 // we can easily edit the non-auto generated parts right here in this file
19636 // instead of having to edit some template or the code generator. 19636 // instead of having to edit some template or the code generator.
19637 #include "base/macros.h" 19637 #include "base/macros.h"
19638 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19638 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19639 19639
19640 } // namespace gles2 19640 } // namespace gles2
19641 } // namespace gpu 19641 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698