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

Unified Diff: ui/compositor/layer.h

Issue 2921353003: [Merge to M60] Cloning a ui::Layer should also clone its target temperature (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 89602807c8cfc58626b3b81f10f9e7de684fc8e4..a439bbdf1e5c00f9998ac2cea4ee2776750983aa 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -191,6 +191,10 @@ class COMPOSITOR_EXPORT Layer
float layer_temperature() const { return layer_temperature_; }
void SetLayerTemperature(float value);
+ // Returns the target color temperature if animator is running, or the current
+ // temperature otherwise.
+ float GetTargetTemperature() const;
+
// Blur pixels by this amount in anything below the layer and visible through
// the layer.
int background_blur() const { return background_blur_radius_; }
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698