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

Unified Diff: cc/layers/surface_layer.cc

Issue 2621653002: Remove stretch_content_to_fill_bounds from cc::SurfaceLayer::SetSurfaceInfo (Closed)
Patch Set: fix android 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
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();

Powered by Google App Engine
This is Rietveld 408576698