Fix cc unit tests that depend on verify_property_trees=true
commit601f2ef11b664dfb8bffd8982de9d8afa560a8cc
authorenne <enne@chromium.org>
Tue, 19 May 2015 18:20:17 +0000 (19 11:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 18:20:31 +0000 (19 18:20 +0000)
tree61dda7dfa1d808cd304f291af977278b722d7db8
parent4a8834a23af95d84a1fb0b0a02f729644312df23
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}
cc/test/layer_tree_host_common_test.cc
cc/test/layer_tree_host_common_test.h
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common.h
cc/trees/layer_tree_host_common_unittest.cc
cc/trees/layer_tree_impl.h