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

Issue 13582006: Prioritize tiles near the viewport in out-of-viewport layers (Closed)

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

Description

Prioritize tiles near the viewport in out-of-viewport layers Not prioritizing tiles near the viewport in out-of-viewport layers causes frequent invalidation and redraw of the tiles when the page is scrolled. Modified ExpandRectEquallyToAreaBoundedBy() to expand starting_rect first and check if further expansion is needed for the intersection of starting_rect and bounding_rect. BUG=223697 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193436

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid aggressive expansion in ExpandRectEquallyToAreaBoundedBy so that it works for out-of-viewport… #

Patch Set 3 : Keep original behavior #

Total comments: 9

Patch Set 4 : Fix nits #

Total comments: 2

Patch Set 5 : Add GT in the new test #

Patch Set 6 : Rebased and fixed presubmit warnings #

Patch Set 7 : Use ToString() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -37 lines) Patch
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 4 chunks +38 lines, -10 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 4 chunks +50 lines, -27 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Xianzhu
7 years, 8 months ago (2013-04-03 22:26:43 UTC) #1
danakj
https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc#newcode382 cc/resources/picture_layer_tiling.cc:382: prioritized_rect = ExpandRectBySizeBoundedBy( NAK: Using the viewport rect (or ...
7 years, 8 months ago (2013-04-03 23:08:34 UTC) #2
enne (OOO)
https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc#newcode546 cc/resources/picture_layer_tiling.cc:546: if (rect.IsEmpty()) I think this patch should really just ...
7 years, 8 months ago (2013-04-03 23:41:49 UTC) #3
Xianzhu
On 2013/04/03 23:41:49, enne wrote: > https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc > File cc/resources/picture_layer_tiling.cc (right): > > https://codereview.chromium.org/13582006/diff/1/cc/resources/picture_layer_tiling.cc#newcode546 > ...
7 years, 8 months ago (2013-04-03 23:46:38 UTC) #4
Xianzhu
> That's incorrect. Please see the second paragraph (excluding the title) in the > Description. ...
7 years, 8 months ago (2013-04-03 23:50:34 UTC) #5
enne (OOO)
Removing that conditional is essentially a revert of the patch you said was problematic. Is ...
7 years, 8 months ago (2013-04-03 23:53:18 UTC) #6
Xianzhu
On 2013/04/03 23:53:18, enne wrote: > Removing that conditional is essentially a revert of the ...
7 years, 8 months ago (2013-04-04 00:06:29 UTC) #7
Xianzhu
In the new patch set, the aggressive behavior of ExpandRectEquallyToAreaBoundedBy() (which sometimes expand to certain ...
7 years, 8 months ago (2013-04-04 00:08:05 UTC) #8
Xianzhu
Uploaded a new patch set that keeps the original aggressive expansion algorithm.
7 years, 8 months ago (2013-04-04 17:49:58 UTC) #9
Xianzhu
Patch Set 3 is equivalent to Patch Set 2 in the out-of-bounds case; and is ...
7 years, 8 months ago (2013-04-04 20:33:57 UTC) #10
danakj
https://codereview.chromium.org/13582006/diff/9001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/13582006/diff/9001/cc/resources/picture_layer_tiling.cc#newcode536 cc/resources/picture_layer_tiling.cc:536: rect = starting_rect; I like this idea. https://codereview.chromium.org/13582006/diff/9001/cc/resources/picture_layer_tiling.cc#newcode563 cc/resources/picture_layer_tiling.cc:563: ...
7 years, 8 months ago (2013-04-04 21:37:48 UTC) #11
Xianzhu
I must admit that Change Set 3 is tricky to keep the original behavior and ...
7 years, 8 months ago (2013-04-04 21:55:44 UTC) #12
Xianzhu
On 2013/04/04 21:55:44, Xianzhu wrote: > 1. Calculate the expansion delta (not clamped to distance) ...
7 years, 8 months ago (2013-04-04 22:05:30 UTC) #13
Xianzhu
> If you agree the Patch Set 2 method, I can further simplify it, because ...
7 years, 8 months ago (2013-04-04 22:11:34 UTC) #14
Xianzhu
Removed Patch Set 3 which I don't like. Still request review for Patch Set 2. ...
7 years, 8 months ago (2013-04-08 16:46:28 UTC) #15
Xianzhu
PTAL. Modified according to today's discussion.
7 years, 8 months ago (2013-04-10 01:03:15 UTC) #16
danakj
LGTM with some test nits https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc#newcode264 cc/resources/picture_layer_tiling_unittest.cc:264: EXPECT_RECT_EQ(bounds, out); nit: please ...
7 years, 8 months ago (2013-04-10 05:33:23 UTC) #17
Xianzhu
https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc#newcode264 cc/resources/picture_layer_tiling_unittest.cc:264: EXPECT_RECT_EQ(bounds, out); On 2013/04/10 05:33:23, danakj wrote: > nit: ...
7 years, 8 months ago (2013-04-10 16:19:55 UTC) #18
danakj
https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc#newcode264 cc/resources/picture_layer_tiling_unittest.cc:264: EXPECT_RECT_EQ(bounds, out); On 2013/04/10 16:19:55, Xianzhu wrote: > On ...
7 years, 8 months ago (2013-04-10 16:30:59 UTC) #19
Xianzhu
https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://chromiumcodereview.appspot.com/13582006/diff/19001/cc/resources/picture_layer_tiling_unittest.cc#newcode264 cc/resources/picture_layer_tiling_unittest.cc:264: EXPECT_RECT_EQ(bounds, out); On 2013/04/10 16:30:59, danakj wrote: > On ...
7 years, 8 months ago (2013-04-10 16:44:49 UTC) #20
danakj
https://codereview.chromium.org/13582006/diff/28001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/13582006/diff/28001/cc/resources/picture_layer_tiling_unittest.cc#newcode379 cc/resources/picture_layer_tiling_unittest.cc:379: EXPECT_LE(out.width() * out.height(), target_area); can you give a lower ...
7 years, 8 months ago (2013-04-10 16:46:24 UTC) #21
Xianzhu
About rect equality I will change definition of EXPECT_RECT_EQ to use ToString() in another CL. ...
7 years, 8 months ago (2013-04-10 17:08:37 UTC) #22
danakj
LGTM
7 years, 8 months ago (2013-04-10 17:11:03 UTC) #23
danakj
On Wed, Apr 10, 2013 at 10:08 AM, <wangxianzhu@chromium.org> wrote: > About rect equality I ...
7 years, 8 months ago (2013-04-10 17:11:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/13582006/28003
7 years, 8 months ago (2013-04-10 17:14:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/13582006/54001
7 years, 8 months ago (2013-04-10 17:48:59 UTC) #26
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 19:56:55 UTC) #27
Message was sent while issue was closed.
Change committed as 193436

Powered by Google App Engine
This is Rietveld 408576698