| Index: cc/layers/picture_layer_impl.cc
|
| diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
|
| index 6b753f9ba3cb5ef06b3a2581f191c088400ca531..0a221c45bc6f4d2e5e36bfaee319feaeb9a9c924 100644
|
| --- a/cc/layers/picture_layer_impl.cc
|
| +++ b/cc/layers/picture_layer_impl.cc
|
| @@ -883,7 +883,7 @@ bool PictureLayerImpl::MarkVisibleTilesAsRequired(
|
| continue;
|
|
|
| // If the tile is occluded, don't mark it as required for activation.
|
| - if (tile->is_occluded())
|
| + if (tile->is_occluded(PENDING_TREE))
|
| continue;
|
|
|
| // If the missing region doesn't cover it, this tile is fully
|
| @@ -1461,7 +1461,7 @@ PictureLayerImpl::LayerRasterTileIterator::LayerRasterTileIterator(
|
| IteratorType index = stages_[current_stage_].iterator_type;
|
| TilePriority::PriorityBin tile_type = stages_[current_stage_].tile_type;
|
| if (!iterators_[index] || iterators_[index].get_type() != tile_type ||
|
| - (*iterators_[index])->is_occluded())
|
| + (*iterators_[index])->is_occluded(tree))
|
| ++(*this);
|
| }
|
|
|
| @@ -1474,6 +1474,9 @@ PictureLayerImpl::LayerRasterTileIterator::operator bool() const {
|
| PictureLayerImpl::LayerRasterTileIterator&
|
| PictureLayerImpl::LayerRasterTileIterator::
|
| operator++() {
|
| + WhichTree tree =
|
| + layer_->layer_tree_impl()->IsActiveTree() ? ACTIVE_TREE : PENDING_TREE;
|
| +
|
| IteratorType index = stages_[current_stage_].iterator_type;
|
| TilePriority::PriorityBin tile_type = stages_[current_stage_].tile_type;
|
|
|
| @@ -1482,7 +1485,7 @@ operator++() {
|
| ++iterators_[index];
|
|
|
| while (iterators_[index] && iterators_[index].get_type() == tile_type &&
|
| - (*iterators_[index])->is_occluded())
|
| + (*iterators_[index])->is_occluded(tree))
|
| ++iterators_[index];
|
|
|
| if (iterators_[index] && iterators_[index].get_type() == tile_type)
|
| @@ -1496,7 +1499,7 @@ operator++() {
|
| tile_type = stages_[current_stage_].tile_type;
|
|
|
| if (iterators_[index] && iterators_[index].get_type() == tile_type &&
|
| - !(*iterators_[index])->is_occluded())
|
| + !(*iterators_[index])->is_occluded(tree))
|
| break;
|
| ++current_stage_;
|
| }
|
|
|