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

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: Created 8 years 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/math_util.cc
diff --git a/cc/math_util.cc b/cc/math_util.cc
index 46d1c278253a72a1d62bc9311a13952180768cf1..8ccd5b5a58151b16c5bcdf15d6532eabcfd4ec83 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;

Powered by Google App Engine
This is Rietveld 408576698