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 844165720f6fdb7433a8ef0a28604e77a53996a5..ae498b7155971b6cc11c0f5d17e7cf87a280a140 100644 |
--- a/cc/test/layer_tree_host_common_test.cc |
+++ b/cc/test/layer_tree_host_common_test.cc |
@@ -27,30 +27,23 @@ 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( |
- LayerImpl* layer, |
- const gfx::Transform& transform, |
- const gfx::Point3F& transform_origin, |
- 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); |
+ LayerImpl* layer, const gfx::Transform& transform, |
+ const gfx::Point3F& transform_origin, const gfx::PointF& position, |
+ const gfx::Size& bounds, bool flatten_transform, 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); |
} |