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

Issue 2899403003: cc: Give non-drawing layers that are rasterized a lower priority. (Closed)

Created:
3 years, 6 months ago by Khushal
Modified:
3 years, 6 months ago
Reviewers:
danakj, jaydasika, weiliangc
CC:
chromium-reviews, cc-bugs_chromium.org, jaydasika
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Give non-drawing layers that are rasterized a lower priority. Currently layers which don't draw but are rasterized have the same priority as the drawing layers. This patch does a few things to make sure the drawing layers have a higher priority. 1) In RasterTilePriorityQueue, prioritize tilings from drawing layers over non-drawing layers. 2) In LayerTreeImpl, make sure to update tiles for all layers with valid tile priorities. Currently we end up missing the |raster_event_if_not_in_rsll| layers. 3) Make sure that the non-drawing layers don't block activation of the pending tree. BUG=724591 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2899403003 Cr-Commit-Position: refs/heads/master@{#475145} Committed: https://chromium.googlesource.com/chromium/src/+/2fc1dbd022af829f80502a0babe6a259c69dad58

Patch Set 1 #

Patch Set 2 : .. #

Total comments: 3

Patch Set 3 : .. #

Patch Set 4 : test #

Patch Set 5 : priority bin #

Total comments: 12

Patch Set 6 : more tests #

Patch Set 7 : perftest #

Total comments: 2

Patch Set 8 : addressed comments #

Total comments: 2

Patch Set 9 : type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -38 lines) Patch
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -6 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -5 lines 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 7 chunks +7 lines, -7 lines 0 comments Download
M cc/tiles/picture_layer_tiling.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M cc/tiles/raster_tile_priority_queue_all.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -4 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M cc/tiles/tiling_set_raster_queue_all.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M cc/tiles/tiling_set_raster_queue_all.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +131 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (19 generated)
Khushal
3 years, 6 months ago (2017-05-24 21:48:04 UTC) #3
Khushal
https://codereview.chromium.org/2899403003/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/2899403003/diff/20001/cc/layers/picture_layer_impl.cc#newcode519 cc/layers/picture_layer_impl.cc:519: bool can_require_tiles_for_activation = contributes_to_drawn_render_surface(); Should this be done for ...
3 years, 6 months ago (2017-05-24 21:57:06 UTC) #4
jaydasika
https://codereview.chromium.org/2899403003/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/2899403003/diff/20001/cc/layers/layer_impl.h#newcode583 cc/layers/layer_impl.h:583: bool raster_even_if_not_in_rsll_ : 1; nit : we don't have ...
3 years, 6 months ago (2017-05-24 22:17:55 UTC) #6
Khushal
And tested. PTAL.
3 years, 6 months ago (2017-05-25 02:51:48 UTC) #11
Khushal
https://codereview.chromium.org/2899403003/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/2899403003/diff/20001/cc/layers/layer_impl.h#newcode583 cc/layers/layer_impl.h:583: bool raster_even_if_not_in_rsll_ : 1; On 2017/05/24 22:17:55, jaydasika wrote: ...
3 years, 6 months ago (2017-05-25 02:52:59 UTC) #12
danakj
https://codereview.chromium.org/2899403003/diff/80001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/2899403003/diff/80001/cc/layers/picture_layer_impl.cc#newcode519 cc/layers/picture_layer_impl.cc:519: bool can_require_tiles_for_activation = contributes_to_drawn_render_surface(); Is there a test for ...
3 years, 6 months ago (2017-05-25 15:49:03 UTC) #17
Khushal
https://codereview.chromium.org/2899403003/diff/80001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/2899403003/diff/80001/cc/layers/picture_layer_impl.cc#newcode519 cc/layers/picture_layer_impl.cc:519: bool can_require_tiles_for_activation = contributes_to_drawn_render_surface(); On 2017/05/25 15:49:02, danakj wrote: ...
3 years, 6 months ago (2017-05-25 22:43:23 UTC) #18
danakj
https://codereview.chromium.org/2899403003/diff/80001/cc/tiles/raster_tile_priority_queue_all.cc File cc/tiles/raster_tile_priority_queue_all.cc (right): https://codereview.chromium.org/2899403003/diff/80001/cc/tiles/raster_tile_priority_queue_all.cc#newcode19 cc/tiles/raster_tile_priority_queue_all.cc:19: bool operator()( On 2017/05/25 22:43:22, Khushal wrote: > On ...
3 years, 6 months ago (2017-05-26 15:46:20 UTC) #19
Khushal
https://codereview.chromium.org/2899403003/diff/80001/cc/tiles/raster_tile_priority_queue_all.cc File cc/tiles/raster_tile_priority_queue_all.cc (right): https://codereview.chromium.org/2899403003/diff/80001/cc/tiles/raster_tile_priority_queue_all.cc#newcode19 cc/tiles/raster_tile_priority_queue_all.cc:19: bool operator()( On 2017/05/26 15:46:20, danakj wrote: > On ...
3 years, 6 months ago (2017-05-26 18:09:21 UTC) #20
danakj
LGTM https://codereview.chromium.org/2899403003/diff/140001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2899403003/diff/140001/cc/trees/layer_tree_host_impl_unittest.cc#newcode12445 cc/trees/layer_tree_host_impl_unittest.cc:12445: // The layer is still not drawn, bit ...
3 years, 6 months ago (2017-05-26 19:14:33 UTC) #21
Khushal
https://codereview.chromium.org/2899403003/diff/140001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2899403003/diff/140001/cc/trees/layer_tree_host_impl_unittest.cc#newcode12445 cc/trees/layer_tree_host_impl_unittest.cc:12445: // The layer is still not drawn, bit it ...
3 years, 6 months ago (2017-05-26 19:19:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2899403003/160001
3 years, 6 months ago (2017-05-26 19:20:31 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/10076) android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-26 19:28:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2899403003/160001
3 years, 6 months ago (2017-05-26 19:38:56 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/10077) android_cronet on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-26 19:47:18 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2899403003/160001
3 years, 6 months ago (2017-05-26 20:40:09 UTC) #33
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/2fc1dbd022af829f80502a0babe6a259c69dad58
3 years, 6 months ago (2017-05-26 21:48:55 UTC) #36
vmpstr
3 years, 6 months ago (2017-05-30 20:02:43 UTC) #37
Message was sent while issue was closed.
Can you update the eviction iterator with a corresponding change as well?

Powered by Google App Engine
This is Rietveld 408576698