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

Unified Diff: cc/layers/contents_scaling_layer.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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/contents_scaling_layer.cc
diff --git a/cc/layers/contents_scaling_layer.cc b/cc/layers/contents_scaling_layer.cc
index b44830f5fa70cef857df1daa4b20905603e51152..c50575bedb12fe9559b374a0fbeeb51207050732 100644
--- a/cc/layers/contents_scaling_layer.cc
+++ b/cc/layers/contents_scaling_layer.cc
@@ -14,9 +14,11 @@ gfx::Size ContentsScalingLayer::ComputeContentBoundsForScale(
return gfx::ToCeiledSize(gfx::ScaleSize(bounds(), scale_x, scale_y));
}
-ContentsScalingLayer::ContentsScalingLayer()
- : last_update_contents_scale_x_(0.f),
- last_update_contents_scale_y_(0.f) {}
+ContentsScalingLayer::ContentsScalingLayer(const LayerSettings& settings)
+ : Layer(settings),
+ last_update_contents_scale_x_(0.f),
+ last_update_contents_scale_y_(0.f) {
+}
ContentsScalingLayer::~ContentsScalingLayer() {
}

Powered by Google App Engine
This is Rietveld 408576698