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

Unified Diff: cc/animation/animation_curve.h

Issue 642983003: cc: Make PictureLayerImpl use a better choice for animated raster scale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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') | cc/animation/keyframed_animation_curve.cc » ('J')
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 ca53e442d76bf188f676fc662ee0c38770ee3adb..35232965fa70e13ffa6a4014e7712e728471628a 100644
--- a/cc/animation/animation_curve.h
+++ b/cc/animation/animation_curve.h
@@ -81,9 +81,10 @@ class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
// Returns true if this animation is a translation.
virtual bool IsTranslation() const = 0;
- // Set |max_scale| to the maximum scale along any dimension during this
- // animation. Returns false if the maximum scale cannot be computed.
- virtual bool MaximumScale(float* max_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). Returns
+ // false if the maximum scale cannot be computed.
+ virtual bool MaximumTargetScale(float* max_scale) const = 0;
// Partial Animation implementation.
virtual CurveType Type() const override;
« no previous file with comments | « no previous file | cc/animation/keyframed_animation_curve.h » ('j') | cc/animation/keyframed_animation_curve.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698