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

Unified Diff: cc/math_util.cc

Issue 11644008: Migrate from MathUtil::inverse() to gfx::Transform::GetInverse() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 7 years, 12 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/math_util.h ('k') | cc/math_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/math_util.cc
diff --git a/cc/math_util.cc b/cc/math_util.cc
index 38b609b162698e2b3330e2bd3ca2a8f2c5eed1e7..8796504e2465387c2e0e8fa74d203ba5324fb6b9 100644
--- a/cc/math_util.cc
+++ b/cc/math_util.cc
@@ -422,18 +422,6 @@ void MathUtil::rotateEulerAngles(gfx::Transform* transform, double eulerX, doubl
transform->PreconcatTransform(composite);
}
-gfx::Transform MathUtil::inverse(const gfx::Transform& transform)
-{
- gfx::Transform result;
- bool invertedSuccessfully = transform.GetInverse(&result);
-
- if (invertedSuccessfully)
- return result;
-
- // If transform was un-invertible, then just return identity.
- return gfx::Transform();
-}
-
gfx::Transform MathUtil::to2dTransform(const gfx::Transform& transform)
{
gfx::Transform result = transform;
« no previous file with comments | « cc/math_util.h ('k') | cc/math_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698