Index: ui/compositor/test/test_layer_animation_delegate.cc |
diff --git a/ui/compositor/test/test_layer_animation_delegate.cc b/ui/compositor/test/test_layer_animation_delegate.cc |
index ee6f42659ab1566e4e861d9c8409e54b08c3cddd..4a10a32bfa6e51a5b04ee05a131d435a1578daf4 100644 |
--- a/ui/compositor/test/test_layer_animation_delegate.cc |
+++ b/ui/compositor/test/test_layer_animation_delegate.cc |
@@ -16,7 +16,8 @@ TestLayerAnimationDelegate::TestLayerAnimationDelegate() |
visibility_(true), |
brightness_(0.0f), |
grayscale_(0.0f), |
- color_(SK_ColorBLACK) { |
+ color_(SK_ColorBLACK), |
+ temperature_(0.0f) { |
CreateCcLayer(); |
} |
@@ -26,7 +27,8 @@ TestLayerAnimationDelegate::TestLayerAnimationDelegate( |
transform_(other.GetTransformForAnimation()), |
opacity_(other.GetOpacityForAnimation()), |
visibility_(other.GetVisibilityForAnimation()), |
- color_(SK_ColorBLACK) { |
+ color_(SK_ColorBLACK), |
+ temperature_(0.0f) { |
CreateCcLayer(); |
} |
@@ -66,6 +68,11 @@ void TestLayerAnimationDelegate::SetColorFromAnimation(SkColor color) { |
color_ = color; |
} |
+void TestLayerAnimationDelegate::SetTemperatureFromAnimation( |
+ float temperature) { |
+ temperature_ = temperature; |
+} |
+ |
void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { |
} |
@@ -97,6 +104,10 @@ SkColor TestLayerAnimationDelegate::GetColorForAnimation() const { |
return color_; |
} |
+float TestLayerAnimationDelegate::GetTemperatureFromAnimation() const { |
+ return temperature_; |
+} |
+ |
float TestLayerAnimationDelegate::GetDeviceScaleFactor() const { |
return 1.0f; |
} |