| Index: cc/layers/surface_layer.cc
|
| diff --git a/cc/layers/surface_layer.cc b/cc/layers/surface_layer.cc
|
| index a849589c08e06194597335fdcbcd03162a267bdd..8f906895c562c4c52db23d6a43b5ad8077c8057c 100644
|
| --- a/cc/layers/surface_layer.cc
|
| +++ b/cc/layers/surface_layer.cc
|
| @@ -62,19 +62,23 @@ SurfaceLayer::~SurfaceLayer() {
|
| DCHECK(!layer_tree_host());
|
| }
|
|
|
| -void SurfaceLayer::SetSurfaceInfo(const SurfaceInfo& surface_info,
|
| - bool stretch_content_to_fill_bounds) {
|
| +void SurfaceLayer::SetSurfaceInfo(const SurfaceInfo& surface_info) {
|
| RemoveCurrentReference();
|
| surface_info_ = surface_info;
|
| if (layer_tree_host()) {
|
| current_ref_ =
|
| ref_factory_->CreateReference(layer_tree_host(), surface_info_.id());
|
| }
|
| - stretch_content_to_fill_bounds_ = stretch_content_to_fill_bounds;
|
| UpdateDrawsContent(HasDrawableContent());
|
| SetNeedsPushProperties();
|
| }
|
|
|
| +void SurfaceLayer::SetStretchContentToFillBounds(
|
| + bool stretch_content_to_fill_bounds) {
|
| + stretch_content_to_fill_bounds_ = stretch_content_to_fill_bounds;
|
| + SetNeedsPushProperties();
|
| +}
|
| +
|
| std::unique_ptr<LayerImpl> SurfaceLayer::CreateLayerImpl(
|
| LayerTreeImpl* tree_impl) {
|
| return SurfaceLayerImpl::Create(tree_impl, id());
|
|
|