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

Unified Diff: cc/animation/animation_curve.h

Issue 1076313006: Animation start scale should be considered for the raster scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing and Added more tests Created 5 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 | « no previous file | cc/animation/keyframed_animation_curve.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_curve.h
diff --git a/cc/animation/animation_curve.h b/cc/animation/animation_curve.h
index 1074203f239f0f74aac53799bae581089f9cee8f..68bad3ba3b55d5b21699c38d7d9cc14eb70f53c4 100644
--- a/cc/animation/animation_curve.h
+++ b/cc/animation/animation_curve.h
@@ -85,6 +85,10 @@ class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
// Returns true if this animation preserves axis alignment.
virtual bool PreservesAxisAlignment() const = 0;
+ // Animation start scale
+ virtual bool AnimationStartScale(bool forward_direction,
+ float* start_scale) const = 0;
+
// Set |max_scale| to the maximum scale along any dimension at the end of
// intermediate animation target points (eg keyframe end points). When
// |forward_direction| is true, the animation curve assumes it plays from
« no previous file with comments | « no previous file | cc/animation/keyframed_animation_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698