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

Unified Diff: cc/math_util.h

Issue 11774005: Migrate more functions from MathUtil to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try to fix double/float conversion errors Created 7 years, 11 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/layer_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/math_util.h
diff --git a/cc/math_util.h b/cc/math_util.h
index a3a6016e275b66ea4acc7d806ecba320e5cb2641..0d9984ef3f1071e0663ae444459c10eb8bfcee0f 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -104,8 +104,6 @@ public:
static gfx::QuadF projectQuad(const gfx::Transform&, const gfx::QuadF&, bool& clipped);
static gfx::PointF projectPoint(const gfx::Transform&, const gfx::PointF&, bool& clipped);
- static void flattenTransformTo2d(gfx::Transform&);
-
static gfx::Vector2dF computeTransform2dScaleComponents(const gfx::Transform&, float fallbackValue);
// Returns the smallest angle between the given two vectors in degrees. Neither vector is
@@ -114,22 +112,6 @@ public:
// Projects the |source| vector onto |destination|. Neither vector is assumed to be normalized.
static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF destination);
-
- // Temporary API to ease migration from gfx::Transform
- // to gfx::Transform.
- //
- // TODO(shawnsingh, vollick) we should phase out as much as possible of
- // these temporary functions, putting functionality into gfx::Transform.
- static void rotateEulerAngles(gfx::Transform*, double eulerX, double eulerY, double eulerZ);
- static gfx::Transform to2dTransform(const gfx::Transform&);
- // Note carefully: the args here are labeled as per Webcore indexing conventions.
- static gfx::Transform createGfxTransform(double m11, double m12, double m13, double m14,
- double m21, double m22, double m23, double m24,
- double m31, double m32, double m33, double m34,
- double m41, double m42, double m43, double m44);
-
- static gfx::Transform createGfxTransform(double a, double b, double c,
- double d, double e, double f);
};
} // namespace cc
« no previous file with comments | « cc/layer_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698