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

Issue 2183403002: cc: Move data to LayerTree from LayerTreeHost. (Closed)

Created:
4 years, 4 months ago by Khushal
Modified:
4 years, 4 months ago
CC:
blink-reviews, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, krasin1, pcc1
Base URL:
https://chromium.googlesource.com/chromium/src.git@layer_tree_change
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move data to LayerTree from LayerTreeHost. Move bulk of the tree state from LayerTreeHost to LayerTree. The LayerTree mirrors LayerTreeImpl in terms of what it stores and is used to push the corresponding properties to LayerTreeImpl during commit. BUG=628683 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/806556451c84f03082ece3818862bbc22fd2727b Cr-Commit-Position: refs/heads/master@{#412413}

Patch Set 1 #

Patch Set 2 : .. #

Patch Set 3 : .. #

Total comments: 7

Patch Set 4 : Rebase + test updates #

Patch Set 5 : perftest #

Patch Set 6 : Plz Compile. #

Patch Set 7 : Missed one test. #

Total comments: 3

Patch Set 8 : Rebase. #

Patch Set 9 : remove unused test file. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1593 lines, -1452 lines) Patch
M cc/debug/invalidation_benchmark.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/heads_up_display_unittest.cc View 1 2 3 1 chunk +13 lines, -13 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 30 chunks +36 lines, -38 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/layers/layer_proto_converter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_unittest.cc View 1 2 3 49 chunks +91 lines, -82 lines 1 comment Download
M cc/layers/painted_scrollbar_layer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 2 3 11 chunks +12 lines, -12 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 18 chunks +20 lines, -19 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 1 2 3 8 chunks +10 lines, -8 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 12 chunks +18 lines, -15 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/proto/layer_tree.proto View 1 1 chunk +30 lines, -0 lines 0 comments Download
M cc/proto/layer_tree_host.proto View 1 2 chunks +1 line, -29 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 3 2 chunks +30 lines, -7 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download
M cc/trees/layer_tree.h View 1 2 3 3 chunks +164 lines, -6 lines 0 comments Download
M cc/trees/layer_tree.cc View 1 2 3 2 chunks +455 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 13 chunks +17 lines, -117 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 33 chunks +91 lines, -455 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 1 2 3 4 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 6 chunks +14 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_filters.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_readback.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.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.cc View 1 2 3 4 5 6 7 91 chunks +188 lines, -235 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 1 2 3 28 chunks +36 lines, -37 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 8 chunks +10 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 19 chunks +19 lines, -20 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 2 3 8 chunks +8 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_occlusion.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 1 2 3 7 chunks +10 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_proxy.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 23 chunks +54 lines, -68 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_serialization.cc View 1 2 3 4 5 6 7 chunks +135 lines, -123 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/remote_channel_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 13 chunks +25 lines, -25 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 2 3 4 5 6 7 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.cpp View 1 2 3 7 chunks +14 lines, -14 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 59 (39 generated)
Khushal
This moves bulk of what should go to the LayerTree from the host. Vlad also ...
4 years, 4 months ago (2016-08-01 22:41:55 UTC) #9
Khushal
friendly ping. :)
4 years, 4 months ago (2016-08-08 16:55:33 UTC) #10
enne (OOO)
Sorry for the delay. https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h#newcode157 cc/trees/layer_tree_host.h:157: // ----------------------------------------------------------------- If this is ...
4 years, 4 months ago (2016-08-08 17:52:16 UTC) #11
Khushal
https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h#newcode157 cc/trees/layer_tree_host.h:157: // ----------------------------------------------------------------- On 2016/08/08 17:52:16, enne wrote: > If ...
4 years, 4 months ago (2016-08-08 23:21:37 UTC) #12
enne (OOO)
https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h#newcode220 cc/trees/layer_tree_host.h:220: gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } On 2016/08/08 ...
4 years, 4 months ago (2016-08-09 18:21:08 UTC) #13
enne (OOO)
On 2016/08/09 at 18:21:08, enne wrote: > https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h > File cc/trees/layer_tree_host.h (right): > > https://codereview.chromium.org/2183403002/diff/40001/cc/trees/layer_tree_host.h#newcode220 ...
4 years, 4 months ago (2016-08-09 18:21:54 UTC) #14
Khushal
All done. I rebased too since this is changing a lot of call sites mostly. ...
4 years, 4 months ago (2016-08-12 21:02:58 UTC) #32
loyso (OOO)
https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc#newcode461 cc/trees/layer_tree_host.cc:461: layer_tree_->animation_host()->PushPropertiesTo( Notice that AnimationHost is owned by LayerTree, but ...
4 years, 4 months ago (2016-08-16 02:55:41 UTC) #36
Khushal
https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc#newcode461 cc/trees/layer_tree_host.cc:461: layer_tree_->animation_host()->PushPropertiesTo( On 2016/08/16 02:55:41, loyso wrote: > Notice that ...
4 years, 4 months ago (2016-08-16 04:28:53 UTC) #37
Khushal
+vollick for Webkit. +piman for content.
4 years, 4 months ago (2016-08-16 17:38:30 UTC) #41
piman
rs LGTM for content/ and ui/compositor, modulo review by others for cc/
4 years, 4 months ago (2016-08-16 18:28:57 UTC) #42
enne (OOO)
lgtm
4 years, 4 months ago (2016-08-16 20:58:53 UTC) #43
Ian Vollick
On 2016/08/16 at 20:58:53, enne wrote: > lgtm platform/ lgtm.
4 years, 4 months ago (2016-08-16 21:11:46 UTC) #44
Khushal
https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2183403002/diff/120001/cc/trees/layer_tree_host.cc#newcode461 cc/trees/layer_tree_host.cc:461: layer_tree_->animation_host()->PushPropertiesTo( On 2016/08/16 04:28:53, Khushal wrote: > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 21:47:37 UTC) #45
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/2183403002/140001
4 years, 4 months ago (2016-08-16 21:48:08 UTC) #48
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/2183403002/160001
4 years, 4 months ago (2016-08-16 23:18:00 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-17 01:36:49 UTC) #54
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/806556451c84f03082ece3818862bbc22fd2727b Cr-Commit-Position: refs/heads/master@{#412413}
4 years, 4 months ago (2016-08-17 01:38:15 UTC) #56
Reid Kleckner
https://codereview.chromium.org/2183403002/diff/160001/cc/layers/layer_unittest.cc File cc/layers/layer_unittest.cc (right): https://codereview.chromium.org/2183403002/diff/160001/cc/layers/layer_unittest.cc#newcode945 cc/layers/layer_unittest.cc:945: layer_tree_ = static_cast<StrictMock<MockLayerTree>*>( This cast is invalid: https://build.chromium.org/p/chromium.fyi/builders/UBSanVptr%20Linux/builds/1007/steps/cc_unittests/logs/LayerTest.AddAndRemoveChild ../../cc/layers/layer_unittest.cc:945:19: ...
4 years, 4 months ago (2016-08-17 17:04:46 UTC) #58
Reid Kleckner
4 years, 4 months ago (2016-08-17 17:07:46 UTC) #59
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/2253143002/ by rnk@chromium.org.

The reason for reverting is: Invalid cast breaks CFI build, which is shipping on
Linux soon.

Powered by Google App Engine
This is Rietveld 408576698