| Index: cc/test/layer_tree_host_common_test.cc
|
| diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
|
| index 33e0cafc47c1f06520c1cc28e6268d59811dd610..69488e6eb18812836ea9f4cb575c433e5f25f886 100644
|
| --- a/cc/test/layer_tree_host_common_test.cc
|
| +++ b/cc/test/layer_tree_host_common_test.cc
|
| @@ -27,13 +27,13 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
|
| const gfx::Size& bounds,
|
| bool flatten_transform,
|
| bool is_3d_sorted) {
|
| - SetLayerPropertiesForTestingInternal<Layer>(layer,
|
| - transform,
|
| - transform_origin,
|
| - position,
|
| - bounds,
|
| - flatten_transform,
|
| - is_3d_sorted);
|
| + SetLayerPropertiesForTestingInternal(layer,
|
| + transform,
|
| + transform_origin,
|
| + position,
|
| + bounds,
|
| + flatten_transform,
|
| + is_3d_sorted);
|
| }
|
|
|
| void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
|
| @@ -43,14 +43,19 @@ void LayerTreeHostCommonTestBase::SetLayerPropertiesForTesting(
|
| const gfx::PointF& position,
|
| const gfx::Size& bounds,
|
| bool flatten_transform,
|
| - bool is_3d_sorted) {
|
| - SetLayerPropertiesForTestingInternal<LayerImpl>(layer,
|
| - transform,
|
| - transform_origin,
|
| - position,
|
| - bounds,
|
| - flatten_transform,
|
| - is_3d_sorted);
|
| + bool is_3d_sorted,
|
| + bool create_render_surface) {
|
| + SetLayerPropertiesForTestingInternal(layer,
|
| + transform,
|
| + transform_origin,
|
| + position,
|
| + bounds,
|
| + flatten_transform,
|
| + is_3d_sorted);
|
| + if (create_render_surface) {
|
| + layer->SetHasRenderSurface(true);
|
| + }
|
| +
|
| layer->SetContentBounds(bounds);
|
| }
|
|
|
|
|