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

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

Issue 1925663002: command_buffer: Defer restoring of FBO bindings when changing virtual contexts Base URL: https://chromium.googlesource.com/chromium/src.git@lazy-bindframebuffer-03-copy-texture-chromium-instantiation
Patch Set: rework Created 4 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/gl_state_restorer_impl.h" 5 #include "gpu/command_buffer/service/gl_state_restorer_impl.h"
6 6
7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 7 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
8 #include "gpu/command_buffer/service/query_manager.h" 8 #include "gpu/command_buffer/service/query_manager.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 30 matching lines...) Expand all
41 decoder_->RestoreActiveTextureUnitBinding(target); 41 decoder_->RestoreActiveTextureUnitBinding(target);
42 } 42 }
43 43
44 void GLStateRestorerImpl::RestoreAllExternalTextureBindingsIfNeeded() { 44 void GLStateRestorerImpl::RestoreAllExternalTextureBindingsIfNeeded() {
45 DCHECK(decoder_.get()); 45 DCHECK(decoder_.get());
46 decoder_->RestoreAllExternalTextureBindingsIfNeeded(); 46 decoder_->RestoreAllExternalTextureBindingsIfNeeded();
47 } 47 }
48 48
49 void GLStateRestorerImpl::RestoreFramebufferBindings() { 49 void GLStateRestorerImpl::RestoreFramebufferBindings() {
50 DCHECK(decoder_.get()); 50 DCHECK(decoder_.get());
51 decoder_->RestoreFramebufferBindings(); 51 decoder_->MarkFramebufferBindingsChanged();
52 } 52 }
53 53
54 void GLStateRestorerImpl::PauseQueries() { 54 void GLStateRestorerImpl::PauseQueries() {
55 DCHECK(decoder_.get()); 55 DCHECK(decoder_.get());
56 decoder_->GetQueryManager()->PauseQueries(); 56 decoder_->GetQueryManager()->PauseQueries();
57 } 57 }
58 58
59 void GLStateRestorerImpl::ResumeQueries() { 59 void GLStateRestorerImpl::ResumeQueries() {
60 DCHECK(decoder_.get()); 60 DCHECK(decoder_.get());
61 decoder_->GetQueryManager()->ResumeQueries(); 61 decoder_->GetQueryManager()->ResumeQueries();
62 } 62 }
63 63
64 const gles2::ContextState* GLStateRestorerImpl::GetContextState() const { 64 const gles2::ContextState* GLStateRestorerImpl::GetContextState() const {
65 DCHECK(decoder_.get()); 65 DCHECK(decoder_.get());
66 return decoder_->GetContextState(); 66 return decoder_->GetContextState();
67 } 67 }
68 68
69 } // namespace gpu 69 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698