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

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: Speed up animations in WebContentsViewAuraTest.QuickOverscrollDirectionChange Created 7 years, 9 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/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animation_delegate.h
diff --git a/ui/compositor/layer_animation_delegate.h b/ui/compositor/layer_animation_delegate.h
index 8d144d3028aabce21e48b3d30b7e43627470a13e..7dec661677527b87a49be4b3746267f58a6b64fe 100644
--- a/ui/compositor/layer_animation_delegate.h
+++ b/ui/compositor/layer_animation_delegate.h
@@ -26,12 +26,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;
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698