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

Unified Diff: ui/compositor/layer_animation_delegate.h

Issue 12226080: Thread ui transform animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@DefineThreadedLayerAnimationElements
Patch Set: Address review comments Created 7 years, 10 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: ui/compositor/layer_animation_delegate.h
diff --git a/ui/compositor/layer_animation_delegate.h b/ui/compositor/layer_animation_delegate.h
index 765c2d05a1a8a82ba274e56e84b50af5281e123c..8769afaf706641c64a7d674ee2e73e312e3ebee9 100644
--- a/ui/compositor/layer_animation_delegate.h
+++ b/ui/compositor/layer_animation_delegate.h
@@ -29,12 +29,13 @@ class COMPOSITOR_EXPORT LayerAnimationDelegate {
virtual void SetColorFromAnimation(SkColor color) = 0;
virtual void ScheduleDrawForAnimation() = 0;
virtual const gfx::Rect& GetBoundsForAnimation() const = 0;
- virtual const gfx::Transform& GetTransformForAnimation() const = 0;
+ virtual gfx::Transform GetTransformForAnimation() const = 0;
virtual float GetOpacityForAnimation() const = 0;
virtual bool GetVisibilityForAnimation() const = 0;
virtual float GetBrightnessForAnimation() const = 0;
virtual float GetGrayscaleForAnimation() const = 0;
virtual SkColor GetColorForAnimation() const = 0;
+ virtual float GetDeviceScaleFactor() const = 0;
virtual void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) = 0;
virtual void RemoveThreadedAnimation(int animation_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698