Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 13895005: cc: Find a better prioritized rect when the viewport rect is huge. (Closed)

Created:
7 years, 8 months ago by danakj
Modified:
7 years, 8 months ago
Reviewers:
Xianzhu, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, backer, piman, google-reveman
Visibility:
Public.

Description

cc: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -16 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 4 chunks +15 lines, -13 lines 0 comments Download
M cc/resources/picture_layer_tiling_set.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling_set.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 3 chunks +151 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
danakj
7 years, 8 months ago (2013-04-16 05:20:42 UTC) #1
enne (OOO)
Not to be rude, but this direction feels a lot like another complex band-aid on ...
7 years, 8 months ago (2013-04-16 20:16:20 UTC) #2
enne (OOO)
I am going to punt this patch to wangxianzhu and let you two own this ...
7 years, 8 months ago (2013-04-16 21:34:06 UTC) #3
Xianzhu
I think if we only need to resolve the shrunk starting_rect issue, adding the 'delta ...
7 years, 8 months ago (2013-04-16 22:42:52 UTC) #4
danakj
On Tue, Apr 16, 2013 at 6:42 PM, <wangxianzhu@chromium.org> wrote: > I think if we ...
7 years, 8 months ago (2013-04-16 22:45:06 UTC) #5
Xianzhu
On 2013/04/16 22:45:06, danakj wrote: > If you're not in the viewport, it is (0, ...
7 years, 8 months ago (2013-04-16 22:57:16 UTC) #6
Xianzhu
As the issue breaks chrome-os beta and we need a simple patch that can be ...
7 years, 8 months ago (2013-04-17 00:06:36 UTC) #7
reveman
On 2013/04/17 00:06:36, Xianzhu wrote: > As the issue breaks chrome-os beta and we need ...
7 years, 8 months ago (2013-04-17 00:48:49 UTC) #8
danakj
On 2013/04/16 22:57:16, Xianzhu wrote: > On 2013/04/16 22:45:06, danakj wrote: > > If you're ...
7 years, 8 months ago (2013-04-17 01:13:22 UTC) #9
danakj
https://codereview.chromium.org/13895005/diff/8001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (left): https://codereview.chromium.org/13895005/diff/8001/cc/resources/picture_layer_tiling.cc#oldcode582 cc/resources/picture_layer_tiling.cc:582: } On 2013/04/16 22:42:52, Xianzhu wrote: > I think ...
7 years, 8 months ago (2013-04-17 01:13:33 UTC) #10
Xianzhu
On 2013/04/17 01:13:33, danakj wrote: > https://codereview.chromium.org/13895005/diff/8001/cc/resources/picture_layer_tiling.cc > File cc/resources/picture_layer_tiling.cc (left): > > https://codereview.chromium.org/13895005/diff/8001/cc/resources/picture_layer_tiling.cc#oldcode582 > ...
7 years, 8 months ago (2013-04-17 01:35:59 UTC) #11
danakj
On Tue, Apr 16, 2013 at 9:35 PM, <wangxianzhu@chromium.org> wrote: > On 2013/04/17 01:13:33, danakj ...
7 years, 8 months ago (2013-04-17 01:38:04 UTC) #12
Xianzhu
On 2013/04/17 01:38:04, danakj wrote: > On Tue, Apr 16, 2013 at 9:35 PM, <mailto:wangxianzhu@chromium.org> ...
7 years, 8 months ago (2013-04-17 01:43:19 UTC) #13
danakj
On Tue, Apr 16, 2013 at 9:43 PM, <wangxianzhu@chromium.org> wrote: > If the rect == ...
7 years, 8 months ago (2013-04-17 01:46:02 UTC) #14
Xianzhu
@enne, would you approve? I am not an owner yet. I think passing both the ...
7 years, 8 months ago (2013-04-17 01:53:03 UTC) #15
danakj
On Tue, Apr 16, 2013 at 9:53 PM, <wangxianzhu@chromium.org> wrote: > @enne, would you approve? ...
7 years, 8 months ago (2013-04-17 01:58:41 UTC) #16
danakj
7 years, 8 months ago (2013-04-17 15:43:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 manually as r194596 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698