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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1228323004: NotifyAllTileTasksCompleted for synchronous renderer compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 | « no previous file | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 89d2ef5b173b512dc7eaf3699d2900cca159c3e2..ee9afe43ec75dd81cd7d6b416e1add1182c2fdf9 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1349,6 +1349,12 @@ void LayerTreeHostImpl::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
settings_.using_synchronous_renderer_compositor) {
ReleaseTreeResources();
CleanUpTileManager();
+
+ // Force a call to NotifyAllTileTasks completed - otherwise this logic may
+ // be skipped if no work was enqueued at the time the tile manager was
+ // destroyed.
+ NotifyAllTileTasksCompleted();
+
CreateTileManagerResources();
RecreateTreeResources();
}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698