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

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed)

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

Description

Refactor MutatorHostClient from LayerTreeHost to LayerTree. This is another CL for refactoring part of LayerTreeHost to LayerTree. Refactored MutatorHostClient, and also follow Khushal's other CL, to cache raw pointer of LayerTreeHost in LayerTree, and use unique_ptr to wrap LayerTree in LayerTreeHost. BUG=628683 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/95d9e6b63179642af8391906ccbe586bd3587b56 Cr-Commit-Position: refs/heads/master@{#412727}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Refactor iterators, call sites, fix based on reviews. #

Patch Set 3 : Fix compile issue for Webkit, where it calls LayerTreeHost #

Patch Set 4 : Fix call site in cc_perftest. #

Total comments: 18

Patch Set 5 : Fixes according to code review. #

Total comments: 8

Patch Set 6 : Refactor LTH out of MicroBenchmark interface, based on review. #

Patch Set 7 : Put MutatorHostClient functions into private. #

Patch Set 8 : Rebase on another LTH refactor CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -354 lines) Patch
M cc/animation/animation_host_perftest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M cc/debug/invalidation_benchmark.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/invalidation_benchmark.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M cc/debug/micro_benchmark.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/micro_benchmark.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/micro_benchmark_controller.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/rasterize_and_record_benchmark.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M cc/debug/unittest_only_benchmark.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/unittest_only_benchmark.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 6 chunks +18 lines, -23 lines 0 comments Download
M cc/layers/layer_list_iterator_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/layer_proto_converter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M cc/trees/draw_property_utils.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree.h View 1 2 3 4 5 6 7 5 chunks +61 lines, -5 lines 0 comments Download
M cc/trees/layer_tree.cc View 1 2 3 4 5 6 7 2 chunks +176 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 chunks +2 lines, -55 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 chunks +4 lines, -178 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 4 5 6 7 9 chunks +13 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_serialization.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/property_tree_builder.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -4 lines 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 66 (39 generated)
xingliu
Refactor MutatorHostClient, send to team member for internal review before sending to cc team.
4 years, 4 months ago (2016-08-05 02:10:41 UTC) #3
Khushal
https://codereview.chromium.org/2216203002/diff/1/cc/layers/layer.h File cc/layers/layer.h (right): https://codereview.chromium.org/2216203002/diff/1/cc/layers/layer.h#newcode561 cc/layers/layer.h:561: friend class LayerTree; Did we need to friend LayerTree ...
4 years, 4 months ago (2016-08-08 16:55:03 UTC) #9
ajuma
https://codereview.chromium.org/2216203002/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2216203002/diff/1/cc/trees/layer_tree_host.cc#newcode371 cc/trees/layer_tree_host.cc:371: layer_tree_->animation_host()->SetMutatorHostClient(nullptr); On 2016/08/08 16:55:03, Khushal wrote: > This should ...
4 years, 4 months ago (2016-08-08 17:56:34 UTC) #10
xingliu
Fixes based on review, also refactored iterators, and remove animation_host() from LayerTreeHost. Also fixed all ...
4 years, 4 months ago (2016-08-09 20:57:05 UTC) #11
xingliu
Hi, Blimp client team is currently refactoring part of LayerTreeHost to LayerTree, please help to ...
4 years, 4 months ago (2016-08-09 21:20:02 UTC) #13
Khushal
+loyso. You mentioned that it would be preferable to leave the AnimationHost and MutatorHostClient with ...
4 years, 4 months ago (2016-08-10 18:28:17 UTC) #27
danakj
On Wed, Aug 10, 2016 at 11:28 AM, <khushalsagar@chromium.org> wrote: > +loyso. You mentioned that ...
4 years, 4 months ago (2016-08-10 18:36:00 UTC) #28
Khushal
On 2016/08/10 18:36:00, danakj wrote: > On Wed, Aug 10, 2016 at 11:28 AM, <mailto:khushalsagar@chromium.org> ...
4 years, 4 months ago (2016-08-10 18:55:40 UTC) #29
danakj
On Wed, Aug 10, 2016 at 11:55 AM, <khushalsagar@chromium.org> wrote: > On 2016/08/10 18:36:00, danakj ...
4 years, 4 months ago (2016-08-10 20:10:42 UTC) #30
Khushal
On 2016/08/10 20:10:42, danakj wrote: > On Wed, Aug 10, 2016 at 11:55 AM, <mailto:khushalsagar@chromium.org> ...
4 years, 4 months ago (2016-08-10 21:41:02 UTC) #31
enne (OOO)
Agreed that renaming things is a lot of confusion. I'd prefer LayerTreeHost to be the ...
4 years, 4 months ago (2016-08-11 17:39:44 UTC) #32
loyso (OOO)
On 2016/08/10 18:28:17, Khushal wrote: > One suggestion you had was to have the LayerTreeHost ...
4 years, 4 months ago (2016-08-12 00:57:34 UTC) #34
loyso (OOO)
This CL overall l-g-t-m.
4 years, 4 months ago (2016-08-12 01:06:01 UTC) #35
xingliu
Friendly ping.
4 years, 4 months ago (2016-08-15 16:18:01 UTC) #37
enne (OOO)
lgtm
4 years, 4 months ago (2016-08-15 17:11:34 UTC) #38
Khushal
https://codereview.chromium.org/2216203002/diff/60001/cc/debug/invalidation_benchmark.cc File cc/debug/invalidation_benchmark.cc (right): https://codereview.chromium.org/2216203002/diff/60001/cc/debug/invalidation_benchmark.cc#newcode66 cc/debug/invalidation_benchmark.cc:66: void InvalidationBenchmark::DidUpdateLayers(LayerTreeHost* host) { How about updating the MicroBenchmark ...
4 years, 4 months ago (2016-08-15 17:46:39 UTC) #39
xingliu
Thanks for the review, just upload a patch to adjust the code based on review. ...
4 years, 4 months ago (2016-08-15 21:29:13 UTC) #40
loyso (OOO)
https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc#newcode364 cc/trees/layer_tree_host.cc:364: layer_tree_->animation_host()->SetSupportsScrollAnimations( Notice that LayerTreeHost still deals with layer_tree_->animation_host() calls ...
4 years, 4 months ago (2016-08-16 00:21:17 UTC) #47
loyso (OOO)
https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc#newcode558 cc/trees/layer_tree_host.cc:558: layer_tree_->animation_host()->PushPropertiesTo( On 2016/08/16 00:21:17, loyso wrote: > and here. ...
4 years, 4 months ago (2016-08-16 00:28:05 UTC) #48
xingliu
Discussion on animation host related. https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2216203002/diff/80001/cc/trees/layer_tree_host.cc#newcode364 cc/trees/layer_tree_host.cc:364: layer_tree_->animation_host()->SetSupportsScrollAnimations( On 2016/08/16 00:21:17, ...
4 years, 4 months ago (2016-08-16 02:25:25 UTC) #51
Khushal
https://codereview.chromium.org/2216203002/diff/60001/cc/trees/layer_tree.h File cc/trees/layer_tree.h (right): https://codereview.chromium.org/2216203002/diff/60001/cc/trees/layer_tree.h#newcode58 cc/trees/layer_tree.h:58: // MutatorHostClient implementation. On 2016/08/15 21:29:12, xingliu wrote: > ...
4 years, 4 months ago (2016-08-16 05:37:18 UTC) #52
xingliu
https://codereview.chromium.org/2216203002/diff/60001/cc/trees/layer_tree.h File cc/trees/layer_tree.h (right): https://codereview.chromium.org/2216203002/diff/60001/cc/trees/layer_tree.h#newcode58 cc/trees/layer_tree.h:58: // MutatorHostClient implementation. On 2016/08/16 05:37:17, Khushal wrote: > ...
4 years, 4 months ago (2016-08-16 16:45:15 UTC) #53
xingliu
@vollick, Friendly ping. Please help review: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp ui/compositor/compositor.cc
4 years, 4 months ago (2016-08-16 17:23:58 UTC) #54
Ian Vollick
On 2016/08/16 at 17:23:58, xingliu wrote: > @vollick, Friendly ping. > > Please help review: ...
4 years, 4 months ago (2016-08-16 17:27:31 UTC) #55
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/2216203002/140001
4 years, 4 months ago (2016-08-18 02:29:04 UTC) #62
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-18 03:54:02 UTC) #64
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 03:56:08 UTC) #66
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/95d9e6b63179642af8391906ccbe586bd3587b56
Cr-Commit-Position: refs/heads/master@{#412727}

Powered by Google App Engine
This is Rietveld 408576698