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

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed)

Created:
4 years, 8 months ago by sunxd
Modified:
4 years, 8 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Main thread skip single layers instead of subtrees This is a mirror change of issue 1811423002 on the main thread. After getting rid of tree hierarchy in LayerTreeHost, we won't be able to skip subtrees, instead we skip every single layer. The behavior remains unchanged: a layer is skipped when it meets the legacy subtree-skipping criteria or one of its ancestors meets. The follow-up patch will remove CallFunctionForEveryLayer and use the iterator instead. BUG=600509 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/0f10629e6702683168b2ce68fa2e50d2a5594f25 Cr-Commit-Position: refs/heads/master@{#386083}

Patch Set 1 #

Patch Set 2 : Fix the dependency problem #

Total comments: 21

Patch Set 3 : Resolve comments #

Patch Set 4 : Rebase #

Total comments: 1

Patch Set 5 : Format the comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -192 lines) Patch
M cc/debug/debug_rect_history.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M cc/debug/invalidation_benchmark.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M cc/layers/layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_proto_converter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer_utils.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/proto/property_tree.proto View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/draw_property_utils.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 9 chunks +136 lines, -125 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 3 chunks +37 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_serialization.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 4 chunks +16 lines, -8 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 8 chunks +10 lines, -8 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
sunxd
https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc#newcode456 cc/trees/draw_property_utils.cc:456: !effect_node->data.to_screen_opacity_can_animate_on_impl; I'm also considering merging the logic of main/impl, ...
4 years, 8 months ago (2016-04-06 18:48:48 UTC) #4
Ian Vollick
https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc#newcode419 cc/trees/draw_property_utils.cc:419: const EffectTree& effect_tree = transform_tree.property_trees()->effect_tree; nit: I'd just pass ...
4 years, 8 months ago (2016-04-06 19:42:27 UTC) #5
ajuma
Please also expand the description to say why we're making this change. https://codereview.chromium.org/1864183002/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h ...
4 years, 8 months ago (2016-04-06 19:49:29 UTC) #6
sunxd
https://codereview.chromium.org/1864183002/diff/20001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1864183002/diff/20001/cc/layers/layer_impl.h#newcode101 cc/layers/layer_impl.h:101: bool OpacityCanAnimateOnImplThread() const { return false; } On 2016/04/06 ...
4 years, 8 months ago (2016-04-07 15:37:13 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864183002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864183002/60001
4 years, 8 months ago (2016-04-07 17:18:33 UTC) #9
Ian Vollick
The skipping logic lgtm % ajuma. I still think we should get rid of CallFunctionForEveryLayer, ...
4 years, 8 months ago (2016-04-07 17:20:25 UTC) #10
sunxd
On 2016/04/07 17:20:25, vollick wrote: > The skipping logic lgtm % ajuma. > > I ...
4 years, 8 months ago (2016-04-07 18:07:41 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 18:24:31 UTC) #13
ajuma
lgtm https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1864183002/diff/20001/cc/trees/draw_property_utils.cc#newcode530 cc/trees/draw_property_utils.cc:530: // don't need to be updated. On 2016/04/07 ...
4 years, 8 months ago (2016-04-07 18:46:47 UTC) #14
sunxd
4 years, 8 months ago (2016-04-07 18:57:00 UTC) #18
sunxd
4 years, 8 months ago (2016-04-07 19:03:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864183002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864183002/80001
4 years, 8 months ago (2016-04-07 19:04:25 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/193207)
4 years, 8 months ago (2016-04-07 20:29:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864183002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864183002/80001
4 years, 8 months ago (2016-04-08 15:21:03 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-08 15:27:00 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 15:27:55 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0f10629e6702683168b2ce68fa2e50d2a5594f25
Cr-Commit-Position: refs/heads/master@{#386083}

Powered by Google App Engine
This is Rietveld 408576698