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

Unified Diff: cc/picture_layer_tiling.cc

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid project more agressively. Don't save state for tile prio if we didn't compute tile prio. Created 7 years, 10 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/layer_tree_impl.cc ('K') | « cc/picture_layer_tiling.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.cc
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
index fbeb89aefee83ea008c67ab50b47504a9becda49..8e9559ca9308465a8870a344eab0993403a1eaae 100644
--- a/cc/picture_layer_tiling.cc
+++ b/cc/picture_layer_tiling.cc
@@ -364,20 +364,8 @@ void PictureLayerTiling::UpdateTilePriorities(
if (ContentRect().IsEmpty())
return;
- bool first_update_in_new_source_frame =
- current_source_frame_number != last_source_frame_number_;
-
- bool first_update_in_new_impl_frame =
- current_frame_time != last_impl_frame_time_;
-
- // In pending tree, this is always called. We update priorities:
- // - Immediately after a commit (first_update_in_new_source_frame).
- // - On animation ticks after the first frame in the tree
- // (first_update_in_new_impl_frame).
- // In active tree, this is only called during draw. We update priorities:
- // - On draw if properties were not already computed by the pending tree
- // and activated for the frame (first_update_in_new_impl_frame).
- if (!first_update_in_new_impl_frame && !first_update_in_new_source_frame)
+ if (!needs_update_tile_priorities(current_source_frame_number,
+ current_frame_time))
return;
double time_delta = 0;
« cc/layer_tree_impl.cc ('K') | « cc/picture_layer_tiling.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698