Descriptioncc: 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: . #
Dependent Patchsets: Messages
Total messages: 30 (13 generated)
|