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

Issue 2106273002: cc: Change how/when we build layer list/property tress in tests. (Closed)

Created:
4 years, 5 months ago by danakj
Modified:
4 years, 5 months ago
Reviewers:
jaydasika, ajuma
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Change how/when we build layer list/property tress in tests. There's a bug where when you activate a pending tree, the active tree does not get the test_properties(), so if you BuildLayerList on the active tree, the layer list drops all its layers except the root. In fixing this, I struggled with understanding where and when tests are building layer lists and property trees, and made some changes. Now the test properties build the layer list when AddChild/RemoveChild happens, which is consistent with SetRootLayerForTesting. Also, the BuildLayerListAndPropertyTreesForTesting() and (the new) BuildPropertyTreesForTesting() methods will now always build the trees by setting needs_rebuild = true internally. Also, cleaned up a bunch of LayerTreeHostImpl tests, to not have special PrepareToDraw paths that build property trees, and just do it in the tests. R=ajuma, jaydasika@chromium.org BUG=311404 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/74af409e25e40c016fba195af1adc53e3dce856f Cr-Commit-Position: refs/heads/master@{#403375}

Patch Set 1 #

Total comments: 2

Patch Set 2 : propertytreestuff: more #

Patch Set 3 : propertytreestuff: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -299 lines) Patch
M cc/layers/layer_impl_test_properties.cc View 2 chunks +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 4 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 191 chunks +302 lines, -286 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (13 generated)
danakj
4 years, 5 months ago (2016-06-29 22:21:22 UTC) #3
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/2106273002/1
4 years, 5 months ago (2016-06-29 22:23:27 UTC) #4
jaydasika
lgtm if the bots are happy. https://codereview.chromium.org/2106273002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2106273002/diff/1/cc/trees/layer_tree_impl.cc#newcode1025 cc/trees/layer_tree_impl.cc:1025: void LayerTreeImpl::BuildLayerListAndPropertyTreesForTesting() { ...
4 years, 5 months ago (2016-06-29 22:40:45 UTC) #5
danakj
Changed all the BuildLayerListAndPropertyTrees in LayerTreeHostImpl tests to just BuildPropertyTrees also in the 2nd patch ...
4 years, 5 months ago (2016-06-29 22:41:39 UTC) #6
danakj
https://codereview.chromium.org/2106273002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2106273002/diff/1/cc/trees/layer_tree_impl.cc#newcode1025 cc/trees/layer_tree_impl.cc:1025: void LayerTreeImpl::BuildLayerListAndPropertyTreesForTesting() { On 2016/06/29 22:40:45, jaydasika wrote: > ...
4 years, 5 months ago (2016-06-29 22:42:18 UTC) #7
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/2106273002/40001
4 years, 5 months ago (2016-06-29 22:49:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194367)
4 years, 5 months ago (2016-06-29 23:41:56 UTC) #12
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/2106273002/40001
4 years, 5 months ago (2016-06-29 23:54:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194412)
4 years, 5 months ago (2016-06-30 00:43:52 UTC) #16
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/2106273002/40001
4 years, 5 months ago (2016-06-30 00:47:08 UTC) #18
danakj
Um. A chromevox_tests test failed twice with my patch, with this: [17759:17759:0629/171320:FATAL:keep_alive_registry.cc(53)] Check failed: !g_browser_process->IsShuttingDown(). ...
4 years, 5 months ago (2016-06-30 00:47:45 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194457)
4 years, 5 months ago (2016-06-30 01:30:17 UTC) #21
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/2106273002/40001
4 years, 5 months ago (2016-06-30 22:33:40 UTC) #23
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/2106273002/40001
4 years, 5 months ago (2016-06-30 23:20:44 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-01 00:42:03 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 00:42:07 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 00:44:30 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/74af409e25e40c016fba195af1adc53e3dce856f
Cr-Commit-Position: refs/heads/master@{#403375}

Powered by Google App Engine
This is Rietveld 408576698