Chromium Code Reviews| Index: cc/layers/surface_layer.cc |
| diff --git a/cc/layers/surface_layer.cc b/cc/layers/surface_layer.cc |
| index a849589c08e06194597335fdcbcd03162a267bdd..95b8c46f85fe8b2669656648996d824be6d38a7a 100644 |
| --- a/cc/layers/surface_layer.cc |
| +++ b/cc/layers/surface_layer.cc |
| @@ -62,14 +62,19 @@ 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()); |
| } |
| + UpdateDrawsContent(HasDrawableContent()); |
| + SetNeedsPushProperties(); |
| +} |
| + |
| +void SurfaceLayer::SetStretchContentToFillBounds( |
| + bool stretch_content_to_fill_bounds) { |
| stretch_content_to_fill_bounds_ = stretch_content_to_fill_bounds; |
| UpdateDrawsContent(HasDrawableContent()); |
|
danakj
2017/01/09 19:37:12
HasDrawableContent does not depend on stretch_cont
|
| SetNeedsPushProperties(); |