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 93d658159516549e0164c2e55790fea982a05370..da042ff2c72406310544b761be54e7f12ee12123 100644 |
| --- a/cc/layers/picture_layer_impl.cc |
| +++ b/cc/layers/picture_layer_impl.cc |
| @@ -568,6 +568,17 @@ void PictureLayerImpl::UpdateCanUseLCDTextAfterCommit() { |
| DCHECK(!RasterSourceUsesLCDText()); |
| } |
| +void PictureLayerImpl::UpdateViewportAfterCommit() { |
| + // When we are using GPU rasterization, the tiling texture size is dependant |
| + // on the viewport size. Here we update the raster source, which in turn |
| + // updates the tiling texture size. |
| + DCHECK(layer_tree_impl()->IsPendingTree()); |
|
enne (OOO)
2015/03/19 17:55:24
IsSyncTree. Please make sure you have a commit to
danakj
2015/03/19 18:43:38
(Any single thread LayerTreeTest would)
|
| + DCHECK(layer_tree_impl()->use_gpu_rasterization()); |
| + tilings_->UpdateTilingsToCurrentRasterSource( |
| + raster_source_, nullptr, invalidation_, MinimumContentsScale(), |
| + MaximumContentsScale()); |
| +} |
| + |
| bool PictureLayerImpl::RasterSourceUsesLCDText() const { |
| return raster_source_ ? raster_source_->CanUseLCDText() |
| : layer_tree_impl()->settings().can_use_lcd_text; |