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

Unified Diff: cc/animation/animation_curve.h

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « cc/BUILD.gn ('k') | 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 f4c697cbada8046c2f65fbf70e3d2c2c2a3f826c..74ce11b66cc37c6cdb297c322259ebdb827ce472 100644
--- a/cc/animation/animation_curve.h
+++ b/cc/animation/animation_curve.h
@@ -82,6 +82,9 @@ class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
// Returns true if this animation is a translation.
virtual bool IsTranslation() const = 0;
+ // Returns true if this animation preserves axis alignment.
+ virtual bool PreservesAxisAlignment() 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 | « cc/BUILD.gn ('k') | cc/animation/keyframed_animation_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698