Descriptioncc: Find a better prioritized rect when the viewport rect is huge.
When a part of the layer is visible, then it has a visible_content_rect which
is the best place to expand the prioritized rect from.
If no part of the layer is visible, we use the viewport rect in content space.
However, when the layer clips the viewport, this rect becomes enormous.
Currently the ExpandRectEquallyToAreaBoundedBy function "expands" the viewport
to cover the target area, but if the viewport is huge, it shrinks it instead.
When it shrinks to a rect far away from the layer, the layer is considered too
far from the viewport for prioritization.
Instead, we should only grow the viewport in content space, then intersect with
the tiling's content bounds (as before) to find an appropriate starting rect.
Tests:
PictureLayerTilingIteratorTest.TilesExistGiantViewport
PictureLayerTilingIteratorTest.TilesExistOutsideViewport
PictureLayerTilingIteratorTest.TilesExistLargeViewportAndLayerWithSmallVisibleArea
PictureLayerTilingIteratorTest.TilesExistLargeViewportAndLayerWithLargeVisibleArea
BUG=231521
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194596
Patch Set 1 : #
Total comments: 2
Patch Set 2 : moar tests #Patch Set 3 : early out restored #
Messages
Total messages: 17 (0 generated)
|