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

Unified Diff: cc/animation/transform_operation.h

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: try again Created 3 years, 6 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
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,

Powered by Google App Engine
This is Rietveld 408576698