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

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

Issue 1880923002: GLContext: Remove WasDirtiedExternally methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.h ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gl_context_virtual.cc
diff --git a/gpu/command_buffer/service/gl_context_virtual.cc b/gpu/command_buffer/service/gl_context_virtual.cc
index 77341a9cb3f857d515d4973ba1913a5985cdc2c8..998d553d69ae97cf21dcd3a8addfdf5bc5eb36ad 100644
--- a/gpu/command_buffer/service/gl_context_virtual.cc
+++ b/gpu/command_buffer/service/gl_context_virtual.cc
@@ -106,21 +106,6 @@ void GLContextVirtual::SetUnbindFboOnMakeCurrent() {
shared_context_->SetUnbindFboOnMakeCurrent();
}
-base::Closure GLContextVirtual::GetStateWasDirtiedExternallyCallback() {
- return shared_context_->GetStateWasDirtiedExternallyCallback();
-}
-
-void GLContextVirtual::RestoreStateIfDirtiedExternally() {
- // The dirty bit should only be cleared after the state has been restored,
- // which should be done only when the context is current.
- DCHECK(IsCurrent(NULL));
- if (!shared_context_->GetStateWasDirtiedExternally())
- return;
- gfx::ScopedSetGLToRealGLApi scoped_set_gl_api;
- GetGLStateRestorer()->RestoreState(NULL);
- shared_context_->SetStateWasDirtiedExternally(false);
-}
-
GLContextVirtual::~GLContextVirtual() {
Destroy();
}
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.h ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698