| Index: cc/layers/picture_layer_impl.cc
|
| diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
|
| index 8960a801aea9ef0bfc3af79f743df715a7657d1c..aa14a25b7d8719f58921a5792bd172bc8040210c 100644
|
| --- a/cc/layers/picture_layer_impl.cc
|
| +++ b/cc/layers/picture_layer_impl.cc
|
| @@ -809,7 +809,7 @@ void PictureLayerImpl::MarkVisibleResourcesAsRequired() const {
|
| // higher res on the active tree to a lower res on the pending tree.
|
|
|
| // First, early out for layers with no visible content.
|
| - if (visible_content_rect().IsEmpty())
|
| + if (visible_rect_for_tile_priority_.IsEmpty())
|
| return;
|
|
|
| // Only mark tiles inside the viewport for tile priority as required for
|
| @@ -817,7 +817,7 @@ void PictureLayerImpl::MarkVisibleResourcesAsRequired() const {
|
| // can be independently overridden by embedders like Android WebView with
|
| // SetExternalDrawConstraints.
|
| gfx::Rect rect = GetViewportForTilePriorityInContentSpace();
|
| - rect.Intersect(visible_content_rect());
|
| + rect.Intersect(visible_rect_for_tile_priority_);
|
|
|
| float min_acceptable_scale =
|
| std::min(raster_contents_scale_, ideal_contents_scale_);
|
| @@ -1495,7 +1495,7 @@ bool PictureLayerImpl::AllTilesRequiredForActivationAreReadyToDraw() const {
|
| if (!tilings_)
|
| return true;
|
|
|
| - if (visible_content_rect().IsEmpty())
|
| + if (visible_rect_for_tile_priority_.IsEmpty())
|
| return true;
|
|
|
| for (size_t i = 0; i < tilings_->num_tilings(); ++i) {
|
| @@ -1504,7 +1504,7 @@ bool PictureLayerImpl::AllTilesRequiredForActivationAreReadyToDraw() const {
|
| tiling->resolution() != LOW_RESOLUTION)
|
| continue;
|
|
|
| - gfx::Rect rect(visible_content_rect());
|
| + gfx::Rect rect(visible_rect_for_tile_priority_);
|
| for (PictureLayerTiling::CoverageIterator iter(tiling, 1.f, rect); iter;
|
| ++iter) {
|
| const Tile* tile = *iter;
|
|
|