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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 23495022: CC: Add a scheduled action for ManageTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« cc/resources/tile_manager.cc ('K') | « cc/resources/tile_manager.cc ('k') | no next file » | 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 5546ea33d36ce5773120089d2538164aaec607e9..a2fc09b9a9c69bbff5f0624f609382b047e5586c 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2468,6 +2468,13 @@ void LayerTreeHostImpl::SetTreePriority(TreePriority priority) {
new_state.tree_priority = priority;
tile_manager_->SetGlobalState(new_state);
manage_tiles_needed_ = true;
+
+ // We may have blocked activation entirely while in smoothness
+ // mode due to not prioritizing pending tree tiles. When transitioning
+ // out of smoothness mode, this is here to insure we do call manage-tiles
+ // again (to insure reprioritize and activate).
+ if (priority != SMOOTHNESS_TAKES_PRIORITY)
reveman 2013/09/03 19:03:21 We need this to trigger a call to ManageTiles() ev
+ client_->SetNeedsRedrawOnImplThread();
enne (OOO) 2013/09/03 19:11:13 Sorry, but I don't follow this. If we're missing
epenner 2013/09/03 19:27:53 The current problem case is a double-tap zoom anim
}
void LayerTreeHostImpl::ResetCurrentFrameTimeForNextFrame() {
« cc/resources/tile_manager.cc ('K') | « cc/resources/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698