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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 23548022: [cc] Evict UIResources when the renderer is not visible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typos Created 7 years, 3 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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 0d4fbf9fd0806d37a567c2559c45470da83ad913..9ae7266b0959b4d17e0c351d67623fcc24ba002b 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -629,6 +629,11 @@ void LayerTreeImpl::ProcessUIResourceRequestQueue() {
break;
}
}
+
+ // If all UI resource evictions were not be recreated by this commit, then
powei 2013/09/10 21:50:51 be
+ // another commit is required.
+ if (layer_tree_host_impl_->EvictedUIResourcesExist())
+ layer_tree_host_impl_->SetNeedsCommit();
}
void LayerTreeImpl::AddLayerWithCopyOutputRequest(LayerImpl* layer) {

Powered by Google App Engine
This is Rietveld 408576698