| Index: cc/layers/layer_impl_unittest.cc
|
| diff --git a/cc/layers/layer_impl_unittest.cc b/cc/layers/layer_impl_unittest.cc
|
| index ed3c43ee659e140f4ad4651db023722f490f7c8b..9868cf8b183bd9b31cfa08676c02d9698f4de187 100644
|
| --- a/cc/layers/layer_impl_unittest.cc
|
| +++ b/cc/layers/layer_impl_unittest.cc
|
| @@ -82,8 +82,6 @@ namespace {
|
|
|
| #define VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) \
|
| root->layer_tree_impl()->ResetAllChangeTracking(); \
|
| - host_impl.active_tree()->property_trees()->needs_rebuild = true; \
|
| - host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting(); \
|
| host_impl.ForcePrepareToDraw(); \
|
| EXPECT_FALSE(host_impl.active_tree()->needs_update_draw_properties()); \
|
| code_to_test; \
|
| @@ -91,8 +89,6 @@ namespace {
|
|
|
| #define VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(code_to_test) \
|
| root->layer_tree_impl()->ResetAllChangeTracking(); \
|
| - host_impl.active_tree()->property_trees()->needs_rebuild = true; \
|
| - host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting(); \
|
| host_impl.ForcePrepareToDraw(); \
|
| EXPECT_FALSE(host_impl.active_tree()->needs_update_draw_properties()); \
|
| code_to_test; \
|
| @@ -286,6 +282,7 @@ TEST(LayerImplTest, VerifyNeedsUpdateDrawProperties) {
|
| // Related scrolling functions.
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size));
|
| VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetBounds(large_size));
|
| + host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(arbitrary_vector2d));
|
| VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->ScrollBy(gfx::Vector2d()));
|
| VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(
|
|
|