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

Unified Diff: ui/gfx/transform_util.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 | « ui/gfx/transform.cc ('k') | ui/gfx/transform_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform_util.h
diff --git a/ui/gfx/transform_util.h b/ui/gfx/transform_util.h
index 19a98a3d436c6f8c2dea22e68d0d5824ce607b59..be5ba4c03ce6c46ecf99f8b4b7515494f2150f26 100644
--- a/ui/gfx/transform_util.h
+++ b/ui/gfx/transform_util.h
@@ -22,11 +22,11 @@ struct UI_EXPORT DecomposedTransform {
// if used with Compose below, will produce the identity transform.
DecomposedTransform();
- double translate[3];
- double scale[3];
- double skew[3];
- double perspective[4];
- double quaternion[4];
+ SkMScalar translate[3];
+ SkMScalar scale[3];
+ SkMScalar skew[3];
+ SkMScalar perspective[4];
+ SkMScalar quaternion[4];
// Copy and assign are allowed.
};
@@ -38,7 +38,7 @@ struct UI_EXPORT DecomposedTransform {
UI_EXPORT bool BlendDecomposedTransforms(DecomposedTransform* out,
const DecomposedTransform& to,
const DecomposedTransform& from,
- double progress);
+ SkMScalar progress);
// Decomposes this transform into its translation, scale, skew, perspective,
// and rotation components following the routines detailed in this spec:
« no previous file with comments | « ui/gfx/transform.cc ('k') | ui/gfx/transform_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698