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

Issue 2118993002: Detemplatize cc property nodes (Closed)

Created:
4 years, 5 months ago by trchen
Modified:
4 years, 5 months ago
Reviewers:
Ian Vollick, ajuma
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detemplatize cc property nodes Property nodes used to be instantiation of TreeNode<T> template with different payload. There is little gain from it (deduplicate 500 bytes of code for 3 times), while made us to type "->data." a few hundred times. Also this extra level of indirection adds invisible mental overheads. This CL detemplatizes TreeNode<T> and flatten the payload to the node. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/dba8b150955e55508ca018ab721c14dba1374fd3 Cr-Commit-Position: refs/heads/master@{#404339}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase & fix build filures #

Patch Set 3 : fix another incomplete export #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : fix android build #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1972 lines, -1809 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M cc/cc.gyp View 3 chunks +8 lines, -0 lines 0 comments Download
M cc/input/scroll_state.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/input/scroll_state_data.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/input/scroll_state_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 14 chunks +29 lines, -29 lines 0 comments Download
M cc/layers/layer_impl.cc View 18 chunks +40 lines, -37 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -7 lines 0 comments Download
M cc/layers/layer_utils.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 4 chunks +14 lines, -13 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 5 chunks +8 lines, -6 lines 0 comments Download
M cc/layers/viewport.cc View 1 chunk +1 line, -0 lines 0 comments Download
A cc/trees/clip_node.h View 1 chunk +82 lines, -0 lines 0 comments Download
A cc/trees/clip_node.cc View 1 chunk +111 lines, -0 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 48 chunks +174 lines, -186 lines 0 comments Download
A cc/trees/effect_node.h View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
A cc/trees/effect_node.cc View 1 2 3 4 1 chunk +141 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 6 chunks +12 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 18 chunks +77 lines, -77 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 15 chunks +24 lines, -23 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 9 chunks +15 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 5 chunks +14 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 6 chunks +21 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 chunks +18 lines, -291 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 40 chunks +177 lines, -763 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 15 chunks +93 lines, -93 lines 0 comments Download
M cc/trees/property_tree_unittest.cc View 1 2 3 4 30 chunks +138 lines, -178 lines 0 comments Download
A cc/trees/scroll_node.h View 1 chunk +58 lines, -0 lines 0 comments Download
A cc/trees/scroll_node.cc View 1 chunk +127 lines, -0 lines 0 comments Download
A cc/trees/transform_node.h View 1 chunk +168 lines, -0 lines 0 comments Download
A cc/trees/transform_node.cc View 1 chunk +271 lines, -0 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 4 5 6 2 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 2 3 4 5 6 5 chunks +18 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 1 2 3 4 5 6 5 chunks +22 lines, -21 lines 0 comments Download
M ui/gfx/transform.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 37 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118993002/1
4 years, 5 months ago (2016-07-01 22:38:55 UTC) #7
trchen
4 years, 5 months ago (2016-07-01 22:39:36 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/90693)
4 years, 5 months ago (2016-07-01 23:02:27 UTC) #10
Ian Vollick
Some of the bot failures look real, but I like the patch. I agree that ...
4 years, 5 months ago (2016-07-02 01:26:06 UTC) #11
trchen
On 2016/07/02 01:26:06, vollick wrote: > Some of the bot failures look real, but I ...
4 years, 5 months ago (2016-07-06 21:46:31 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118993002/20001
4 years, 5 months ago (2016-07-06 22:27:37 UTC) #15
trchen
On 2016/07/06 21:46:31, trchen wrote: > I'm still looking at the win_clang failure. It seems ...
4 years, 5 months ago (2016-07-06 22:35:35 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/48686)
4 years, 5 months ago (2016-07-06 22:58:35 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118993002/40001
4 years, 5 months ago (2016-07-07 01:35:52 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/31888) ios-device-gn on ...
4 years, 5 months ago (2016-07-07 01:40:23 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118993002/60001
4 years, 5 months ago (2016-07-07 01:51:21 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/92262)
4 years, 5 months ago (2016-07-07 02:20:54 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2118993002/100001
4 years, 5 months ago (2016-07-07 04:47:58 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 06:17:16 UTC) #30
Ian Vollick
On 2016/07/07 at 06:17:16, commit-bot wrote: > Dry run: This issue passed the CQ dry ...
4 years, 5 months ago (2016-07-07 14:07:53 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/2118993002/120001
4 years, 5 months ago (2016-07-08 02:45:28 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-08 09:47:17 UTC) #35
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 09:49:25 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dba8b150955e55508ca018ab721c14dba1374fd3
Cr-Commit-Position: refs/heads/master@{#404339}

Powered by Google App Engine
This is Rietveld 408576698