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

Unified Diff: cc/animation/transform_operation.h

Issue 23043011: cc: Use SkMScalar instead of doubles everywhere in cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: danakj review Created 7 years, 3 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/layer_animation_controller_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 d5f2830daf6263534f5732c2da01277f281a250f..345ff295e390b4aa81bbf2c55ad92373904d2497 100644
--- a/cc/animation/transform_operation.h
+++ b/cc/animation/transform_operation.h
@@ -32,40 +32,40 @@ struct TransformOperation {
gfx::Transform matrix;
union {
- double perspective_depth;
+ SkMScalar perspective_depth;
struct {
- double x, y;
+ SkMScalar x, y;
} skew;
struct {
- double x, y, z;
+ SkMScalar x, y, z;
} scale;
struct {
- double x, y, z;
+ SkMScalar x, y, z;
} translate;
struct {
struct {
- double x, y, z;
+ SkMScalar x, y, z;
} axis;
- double angle;
+ SkMScalar angle;
} rotate;
};
bool IsIdentity() const;
static bool BlendTransformOperations(const TransformOperation* from,
const TransformOperation* to,
- double progress,
+ SkMScalar progress,
gfx::Transform* result);
static bool BlendedBoundsForBox(const gfx::BoxF& box,
const TransformOperation* from,
const TransformOperation* to,
- double min_progress,
- double max_progress,
+ SkMScalar min_progress,
+ SkMScalar max_progress,
gfx::BoxF* bounds);
};
« no previous file with comments | « cc/animation/layer_animation_controller_unittest.cc ('k') | cc/animation/transform_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698