Index: cc/layers/picture_layer_impl.cc |
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
index 3694e7c78c6d363ea99f0af904f74027a40bacb4..81d9210ef9f62548dc475d11908a53bd9753bc59 100644 |
--- a/cc/layers/picture_layer_impl.cc |
+++ b/cc/layers/picture_layer_impl.cc |
@@ -438,8 +438,6 @@ void PictureLayerImpl::UpdateTiles( |
was_screen_space_transform_animating_ = |
draw_properties().screen_space_transform_is_animating; |
- // TODO(sohanjg): Avoid needlessly update priorities when syncing to a |
- // non-updated tree which will then be updated immediately afterwards. |
should_update_tile_priorities_ = true; |
UpdateTilePriorities(occlusion_tracker); |
@@ -486,11 +484,9 @@ void PictureLayerImpl::UpdateTilePriorities( |
WhichTree tree = |
layer_tree_impl()->IsActiveTree() ? ACTIVE_TREE : PENDING_TREE; |
for (size_t i = 0; i < tilings_->num_tilings(); ++i) { |
- // TODO(sohanjg): Passing MaximumContentsScale as layer contents scale |
- // in UpdateTilePriorities is wrong and should be ideal contents scale. |
tilings_->tiling_at(i)->UpdateTilePriorities(tree, |
visible_layer_rect, |
- MaximumTilingContentsScale(), |
+ ideal_contents_scale_, |
current_frame_time_in_seconds, |
occlusion_tracker, |
render_target(), |