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

Unified Diff: ui/compositor/test/test_layer_animation_delegate.cc

Issue 2854653003: [Night Light] Backend ui::Layer work (Closed)
Patch Set: Created 3 years, 8 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 | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698