Chromium Code Reviews| Index: cc/layers/picture_layer_impl.cc |
| diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
| index d31aa8c5c2b7e89d747a46b0ff690c9b901782cb..5ceb859073b13c5afa80576e56268df3d0adcdc9 100644 |
| --- a/cc/layers/picture_layer_impl.cc |
| +++ b/cc/layers/picture_layer_impl.cc |
| @@ -483,6 +483,9 @@ void PictureLayerImpl::UpdateTiles(const Occlusion& occlusion_in_content_space, |
| was_screen_space_transform_animating_ = |
| draw_properties().screen_space_transform_is_animating; |
| + if (draw_transform_is_animating()) |
| + pile_->set_will_be_used_for_transform_animation(true); |
| + |
| should_update_tile_priorities_ = true; |
| UpdateTilePriorities(occlusion_in_content_space); |
| @@ -1232,18 +1235,6 @@ void PictureLayerImpl::SanityCheckTilingState() const { |
| } |
| bool PictureLayerImpl::ShouldAdjustRasterScaleDuringScaleAnimations() const { |
| - if (!layer_tree_impl()->use_gpu_rasterization()) |
| - return false; |
|
ajuma
2014/10/17 13:36:24
We still need this check, since we don't want to r
|
| - |
| - // Re-rastering text at different scales using GPU rasterization causes |
| - // texture uploads for glyphs at each scale (see crbug.com/366225). To |
| - // workaround this performance issue, we don't re-rasterize layers with |
| - // text during scale animations. |
| - // TODO(ajuma): Remove this workaround once text can be efficiently |
| - // re-rastered at different scales (e.g. by using distance-field fonts). |
| - if (pile_->has_text()) |
| - return false; |
| - |
| return true; |
| } |