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

Unified Diff: cc/output/gl_renderer.cc

Issue 1469863003: Cleanup SurfaceVisibility code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup surface visibility completely. Created 5 years, 1 month 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: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 22e2cb8117561cf2edf83d6f2c202a3d91a0626e..f72eab6107c26846bc67e80e9e9620ea92d934fe 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -395,8 +395,6 @@ const RendererCapabilitiesImpl& GLRenderer::Capabilities() const {
void GLRenderer::DidChangeVisibility() {
EnforceMemoryPolicy();
- context_support_->SetSurfaceVisible(visible());
-
// If we are not visible, we ask the context to aggressively free resources.
context_support_->SetAggressivelyFreeResources(!visible());
}

Powered by Google App Engine
This is Rietveld 408576698