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

Unified Diff: cc/animation/transform_operation.h

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: . Created 3 years, 5 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 | « cc/animation/keyframed_animation_curve_unittest.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/transform_operation.h
diff --git a/cc/animation/transform_operation.h b/cc/animation/transform_operation.h
index 3ea5fc20210a230a1014915a16fdaaf2bf07a8d9..1a6a8168ea57bd09379ede386dd9a8c8678edbfa 100644
--- a/cc/animation/transform_operation.h
+++ b/cc/animation/transform_operation.h
@@ -54,10 +54,14 @@ struct TransformOperation {
};
bool IsIdentity() const;
+
+ // Sets |matrix| based on type and the union values.
+ void Bake();
+
static bool BlendTransformOperations(const TransformOperation* from,
const TransformOperation* to,
SkMScalar progress,
- gfx::Transform* result);
+ TransformOperation* result);
static bool BlendedBoundsForBox(const gfx::BoxF& box,
const TransformOperation* from,
« no previous file with comments | « cc/animation/keyframed_animation_curve_unittest.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698