Fix cc unit tests that depend on verify_property_trees=true
A number of cc unit tests have started checking property tree output, primarily visible_rect_from_property_trees but also needs_rebuild on the trees. Because of this, these tests now depend on running the property tree code, so setting verify_property_trees=false forces these tests to run only CDP code which causes them to fail. Therefore, convert these specific tests to use property tree updates directly. This also requires a PrecalculateMetaInformation function for LayerImpl, as LayerTreeHostCommonTest.SkippingSubtreeImpl touched LayerImpl properties that could only theoretically be changed from the main thread. In the future, I think all layer tree host common tests will need to go down the property tree update path, but (in my opinion) it's not worth doing that until we have property trees everywhere. This patch is just a step in that direction to unblock property trees for the compositor thread first. R=ajuma@chromium.org,vollick@chromium.org BUG=481585 Review URL: https://codereview.chromium.org/1136643006 Cr-Commit-Position: refs/heads/master@{#330561}
Showing
This diff is collapsed.
Please register or sign in to comment