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

Issue 140513006: cc: Simplify picture layer tiling update tile priorities. (Closed)

Created:
6 years, 10 months ago by vmpstr
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, aelias_OOO_until_Jul13, epenner
Visibility:
Public.

Description

cc: Simplify picture layer tiling update tile priorities. This patch simplifies the priority math calculation and moves it into layers space. This makes the priority to be less correct, since we're inverse transforming the viewport into layer space instead of forward transforming tiles into screen space in all cases. In particular, with perspective and rotated layers, we will be marking more tiles as visible than before. This should be OK, since the amount of those layers in practice is limited. BUG=339142 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251064

Patch Set 1 #

Total comments: 35

Patch Set 2 : update #

Total comments: 1

Patch Set 3 : #

Total comments: 19

Patch Set 4 : update #

Patch Set 5 : format + clip inverse projected rect #

Total comments: 8

Patch Set 6 : update #

Total comments: 4

Patch Set 7 : update #

Total comments: 9

Patch Set 8 : update #

Patch Set 9 : update #

Patch Set 10 : +unittest #

Total comments: 1

Patch Set 11 : rebase #

Patch Set 12 : removed dead code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+750 lines, -932 lines) Patch
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +31 lines, -40 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 4 chunks +13 lines, -14 lines 0 comments Download
M cc/resources/managed_tile_state.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/managed_tile_state.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 5 4 chunks +16 lines, -13 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 1 chunk +126 lines, -195 lines 0 comments Download
M cc/resources/picture_layer_tiling_perftest.cc View 1 2 3 4 5 5 chunks +26 lines, -40 lines 0 comments Download
M cc/resources/picture_layer_tiling_set.h View 1 2 3 4 1 chunk +4 lines, -13 lines 0 comments Download
M cc/resources/picture_layer_tiling_set.cc View 1 1 chunk +7 lines, -28 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 7 8 9 36 chunks +408 lines, -357 lines 0 comments Download
M cc/resources/prioritized_tile_set.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M cc/resources/prioritized_tile_set_unittest.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -30 lines 0 comments Download
M cc/resources/tile_priority.h View 1 2 3 4 3 chunks +26 lines, -25 lines 0 comments Download
M cc/resources/tile_priority.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -86 lines 0 comments Download
D cc/resources/tile_priority_unittest.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 2 3 4 5 3 chunks +15 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 2 3 4 5 3 chunks +20 lines, -2 lines 0 comments Download
M cc/test/test_tile_priorities.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
vmpstr
Hi. Please take a look. This is an initial patch that roughs in the skewport ...
6 years, 10 months ago (2014-01-31 20:53:37 UTC) #1
enne (OOO)
https://codereview.chromium.org/140513006/diff/1/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/1/cc/resources/picture_layer_tiling.cc#newcode21 cc/resources/picture_layer_tiling.cc:21: const double kSkewportTargetTimeInSeconds = 0.5f; On 2014/01/31 20:53:38, vmpstr ...
6 years, 10 months ago (2014-01-31 23:07:46 UTC) #2
enne (OOO)
This looks like a good incremental approach. Can you delete the rotated and perspective perf ...
6 years, 10 months ago (2014-01-31 23:33:36 UTC) #3
vmpstr
Hi, I have uploaded a second version of the patch, which addresses most (if not ...
6 years, 10 months ago (2014-02-03 20:27:23 UTC) #4
epennerAtGoogle
Cool! Adding a couple (long winded) comments. Some should be addressed if we want this ...
6 years, 10 months ago (2014-02-03 23:43:03 UTC) #5
enne (OOO)
https://codereview.chromium.org/140513006/diff/240001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/140513006/diff/240001/cc/layers/picture_layer_impl.cc#newcode354 cc/layers/picture_layer_impl.cc:354: visible_rect_in_content_space, This caller passes visible_rect_in_content_space but the function signature ...
6 years, 10 months ago (2014-02-04 00:38:22 UTC) #6
epennerAtGoogle
> I thought we would be able to use this really as distance to visible ...
6 years, 10 months ago (2014-02-04 00:57:48 UTC) #7
vmpstr
Hi, please take another look. Thank you. https://codereview.chromium.org/140513006/diff/240001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/140513006/diff/240001/cc/layers/picture_layer_impl.cc#newcode354 cc/layers/picture_layer_impl.cc:354: visible_rect_in_content_space, On ...
6 years, 10 months ago (2014-02-04 19:50:49 UTC) #8
epennerAtGoogle
Looking good. Only remaining concern now is the 'fling-guard' and the ordering of those tiles ...
6 years, 10 months ago (2014-02-04 21:34:11 UTC) #9
vmpstr
https://codereview.chromium.org/140513006/diff/240001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (left): https://codereview.chromium.org/140513006/diff/240001/cc/resources/tile_manager.cc#oldcode121 cc/resources/tile_manager.cc:121: const float kBackflingGuardDistancePixels = 314.0f; On 2014/02/04 21:34:12, epennerAtGoogle ...
6 years, 10 months ago (2014-02-04 21:57:53 UTC) #10
epennerAtGoogle
https://codereview.chromium.org/140513006/diff/240001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (left): https://codereview.chromium.org/140513006/diff/240001/cc/resources/tile_manager.cc#oldcode121 cc/resources/tile_manager.cc:121: const float kBackflingGuardDistancePixels = 314.0f; Oh, I see. Indeed ...
6 years, 10 months ago (2014-02-04 23:48:06 UTC) #11
vmpstr
enne, could you take another look?
6 years, 10 months ago (2014-02-10 18:32:09 UTC) #12
enne (OOO)
This looks really close. I have a few more suggestions for unit tests, but that's ...
6 years, 10 months ago (2014-02-11 00:43:55 UTC) #13
vmpstr
PTAL. https://codereview.chromium.org/140513006/diff/400001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/400001/cc/resources/picture_layer_tiling.cc#newcode21 cc/resources/picture_layer_tiling.cc:21: int kSkewportExtrapolatedLimitInContentPixels = 2000; On 2014/02/11 00:43:56, enne ...
6 years, 10 months ago (2014-02-11 23:45:24 UTC) #14
enne (OOO)
https://codereview.chromium.org/140513006/diff/460001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/460001/cc/resources/picture_layer_tiling.cc#newcode369 cc/resources/picture_layer_tiling.cc:369: // Note that if the viewport is growing very ...
6 years, 10 months ago (2014-02-11 23:51:49 UTC) #15
vmpstr
PTAL. https://codereview.chromium.org/140513006/diff/460001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/460001/cc/resources/picture_layer_tiling.cc#newcode369 cc/resources/picture_layer_tiling.cc:369: // Note that if the viewport is growing ...
6 years, 10 months ago (2014-02-12 00:27:52 UTC) #16
enne (OOO)
https://codereview.chromium.org/140513006/diff/670001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/670001/cc/resources/picture_layer_tiling.cc#newcode361 cc/resources/picture_layer_tiling.cc:361: int old_max_x = last_visible_rect_in_content_space_.width() + old_min_x; right() https://codereview.chromium.org/140513006/diff/670001/cc/resources/picture_layer_tiling.cc#newcode362 cc/resources/picture_layer_tiling.cc:362: ...
6 years, 10 months ago (2014-02-12 00:35:35 UTC) #17
vmpstr
PTAL. https://codereview.chromium.org/140513006/diff/670001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/670001/cc/resources/picture_layer_tiling.cc#newcode361 cc/resources/picture_layer_tiling.cc:361: int old_max_x = last_visible_rect_in_content_space_.width() + old_min_x; On 2014/02/12 ...
6 years, 10 months ago (2014-02-12 18:14:17 UTC) #18
enne (OOO)
lgtm https://codereview.chromium.org/140513006/diff/760001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/140513006/diff/760001/cc/resources/picture_layer_tiling.cc#newcode382 cc/resources/picture_layer_tiling.cc:382: // Clip the skewport to |max_skewport|. Yes, much ...
6 years, 10 months ago (2014-02-12 18:23:57 UTC) #19
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 10 months ago (2014-02-12 19:18:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/140513006/760001
6 years, 10 months ago (2014-02-12 19:19:55 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 19:20:04 UTC) #22
commit-bot: I haz the power
Failed to apply patch for cc/layers/picture_layer_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-12 19:20:07 UTC) #23
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 10 months ago (2014-02-12 21:56:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/140513006/880001
6 years, 10 months ago (2014-02-12 21:58:38 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 22:21:51 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=225966
6 years, 10 months ago (2014-02-12 22:21:52 UTC) #27
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 10 months ago (2014-02-12 22:28:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/140513006/1150001
6 years, 10 months ago (2014-02-12 22:29:16 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 00:14:51 UTC) #30
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262891
6 years, 10 months ago (2014-02-13 00:14:52 UTC) #31
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 10 months ago (2014-02-13 00:23:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/140513006/1150001
6 years, 10 months ago (2014-02-13 00:27:29 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 02:54:13 UTC) #34
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263170
6 years, 10 months ago (2014-02-13 02:54:13 UTC) #35
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 10 months ago (2014-02-13 16:51:12 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/140513006/1150001
6 years, 10 months ago (2014-02-13 16:51:50 UTC) #37
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 16:55:44 UTC) #38
Message was sent while issue was closed.
Change committed as 251064

Powered by Google App Engine
This is Rietveld 408576698