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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 22469002: cc: Fix aborted commits with evicted textures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded scrolling from test Created 7 years, 4 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 | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 2c4d3a89a4c0c7ae7f8c42169ca3242287385cdc..3a26a079ec6e62881b96c36cb0344a5335c71f97 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -98,6 +98,9 @@ void SingleThreadProxy::SetLayerTreeHostClientReady() {
void SingleThreadProxy::SetVisible(bool visible) {
DebugScopedSetImplThread impl(this);
layer_tree_host_impl_->SetVisible(visible);
+
+ // Changing visibility could change ShouldComposite().
+ layer_tree_host_impl_->UpdateBackgroundAnimateTicking(!ShouldComposite());
}
void SingleThreadProxy::CreateAndInitializeOutputSurface() {
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698