Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3848)

Unified Diff: cc/layers/surface_layer.cc

Issue 2621653002: Remove stretch_content_to_fill_bounds from cc::SurfaceLayer::SetSurfaceInfo (Closed)
Patch Set: up Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/surface_layer.h ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « cc/layers/surface_layer.h ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698