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

Issue 1811423002: SubtreeShouldBeSkipped uses information from property trees (Closed)

Created:
4 years, 9 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

SubtreeShouldBeSkipped uses information from property trees, and is renamed to LayerShouldBeSkippedWithMaskAndReplica, as it is now skipping individual layers instead of subtrees. The LayerImpl version FindLayersThatNeedUpdates uses LayerList iterator and the new version of LayerShouldBeSkippedWithMaskAndReplica. Fix the unit tests. BUG=592440 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/71aea3ee6feb1ca9ca8b4b500a1d95f29d7ebbc6 Cr-Commit-Position: refs/heads/master@{#384720}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : For trybot #

Patch Set 4 : Fix unit tests #

Total comments: 19

Patch Set 5 : Inherit skip criteria #

Patch Set 6 : Rebase #

Patch Set 7 : Fix windows compile failure #

Total comments: 19

Patch Set 8 : Make RSLL update use the same logic as SubtreeShouldBeSkipped #

Patch Set 9 : Fix windows cc_unittests failure #

Patch Set 10 : Remove comments #

Total comments: 7

Patch Set 11 : Resolve comments #

Total comments: 10

Patch Set 12 : Test failure #

Patch Set 13 : Resolve comments #

Total comments: 9

Patch Set 14 : Resolve comments #

Patch Set 15 : Add TODO for large transforms. #

Patch Set 16 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -141 lines) Patch
M cc/proto/property_tree.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -1 line 0 comments Download
M cc/test/layer_test_common.h View 1 2 3 4 5 6 chunks +6 lines, -11 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 5 3 chunks +5 lines, -7 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +63 lines, -39 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 chunks +208 lines, -64 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +60 lines, -1 line 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
sunxd
4 years, 9 months ago (2016-03-22 14:31:49 UTC) #4
ajuma
https://codereview.chromium.org/1811423002/diff/60001/cc/test/layer_test_common.h File cc/test/layer_test_common.h (right): https://codereview.chromium.org/1811423002/diff/60001/cc/test/layer_test_common.h#newcode167 cc/test/layer_test_common.h:167: LayerImpl* root_layer_impl_; Rather than hanging on to a raw ...
4 years, 9 months ago (2016-03-22 15:04:33 UTC) #6
sunxd
Three tests broke because of float matrix multiplication, I'm not very sure if my fixes ...
4 years, 9 months ago (2016-03-23 22:26:27 UTC) #8
jaydasika
https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc#newcode317 cc/trees/draw_property_utils.cc:317: effect_node->data.has_animated_opacity) On 2016/03/23 22:26:27, sunxd wrote: > On 2016/03/22 ...
4 years, 9 months ago (2016-03-24 00:13:09 UTC) #9
jaydasika
https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (left): https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc#oldcode318 cc/trees/draw_property_utils.cc:318: IsSurfaceBackFaceVisible(layer, tree)) Why is this removed (the surface backface ...
4 years, 9 months ago (2016-03-24 00:48:16 UTC) #10
ajuma
https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1811423002/diff/60001/cc/trees/draw_property_utils.cc#newcode470 cc/trees/draw_property_utils.cc:470: } On 2016/03/23 22:26:27, sunxd wrote: > On 2016/03/22 ...
4 years, 9 months ago (2016-03-24 15:12:00 UTC) #11
sunxd
I made LayerShouldBeSkipped in draw_property_utils skip back face visible surfaces, but some of the test ...
4 years, 8 months ago (2016-03-29 14:26:34 UTC) #12
jaydasika
https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc#newcode1228 cc/trees/property_tree.cc:1228: if (node->owner_id == -1) { Are there any cases ...
4 years, 8 months ago (2016-03-29 15:48:43 UTC) #13
ajuma
https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc#newcode1234 cc/trees/property_tree.cc:1234: node->data.node_or_ancestor_has_backface_visible_surface = true; I think this early-out is only ...
4 years, 8 months ago (2016-03-29 17:06:46 UTC) #14
sunxd
https://codereview.chromium.org/1811423002/diff/120001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1811423002/diff/120001/cc/trees/layer_tree_host_common_unittest.cc#newcode8958 cc/trees/layer_tree_host_common_unittest.cc:8958: root_ptr->SetTransform(singular); Add comment https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc#newcode1228 cc/trees/property_tree.cc:1228: ...
4 years, 8 months ago (2016-03-30 15:21:34 UTC) #15
ajuma
https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc File cc/trees/property_tree.cc (right): https://codereview.chromium.org/1811423002/diff/180001/cc/trees/property_tree.cc#newcode1228 cc/trees/property_tree.cc:1228: if (node->owner_id == -1) { On 2016/03/30 15:21:34, sunxd ...
4 years, 8 months ago (2016-03-30 17:10:11 UTC) #16
sunxd
https://codereview.chromium.org/1811423002/diff/200001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1811423002/diff/200001/cc/trees/draw_property_utils.cc#newcode316 cc/trees/draw_property_utils.cc:316: if (!layer->double_sided() && On 2016/03/30 17:10:11, ajuma wrote: > ...
4 years, 8 months ago (2016-03-31 16:55:57 UTC) #17
jaydasika
https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc#newcode9901 cc/trees/layer_tree_host_common_unittest.cc:9901: EXPECT_EQ(identity_matrix, Why was it not skipped before this CL ...
4 years, 8 months ago (2016-03-31 18:32:57 UTC) #18
ajuma
Just a few more things, but this is generally looking pretty good. https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc ...
4 years, 8 months ago (2016-03-31 19:22:33 UTC) #19
sunxd
https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc#newcode3597 cc/trees/layer_tree_host_common_unittest.cc:3597: // Since |grand_child| has an univertible draw transform, it ...
4 years, 8 months ago (2016-04-01 17:57:46 UTC) #20
ajuma
Thanks, lgtm % jaydasika
4 years, 8 months ago (2016-04-01 18:51:37 UTC) #21
jaydasika
lgtm https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc#newcode9901 cc/trees/layer_tree_host_common_unittest.cc:9901: EXPECT_EQ(identity_matrix, On 2016/04/01 17:57:45, sunxd wrote: > On ...
4 years, 8 months ago (2016-04-01 19:10:11 UTC) #22
sunxd
On 2016/04/01 19:10:11, jaydasika wrote: > lgtm > > https://codereview.chromium.org/1811423002/diff/240001/cc/trees/layer_tree_host_common_unittest.cc > File cc/trees/layer_tree_host_common_unittest.cc (right): > ...
4 years, 8 months ago (2016-04-01 20:35:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811423002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811423002/280001
4 years, 8 months ago (2016-04-01 20:42:11 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/180950) ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-01 20:45:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811423002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811423002/300001
4 years, 8 months ago (2016-04-01 20:56:11 UTC) #33
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 8 months ago (2016-04-01 23:48:20 UTC) #35
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 23:49:40 UTC) #37
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/71aea3ee6feb1ca9ca8b4b500a1d95f29d7ebbc6
Cr-Commit-Position: refs/heads/master@{#384720}

Powered by Google App Engine
This is Rietveld 408576698