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

Unified Diff: Source/platform/transforms/TransformationMatrix.cpp

Issue 1156513006: Removing Unused Methods in TransformationMatrix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/platform/transforms/TransformationMatrix.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/TransformationMatrix.cpp
diff --git a/Source/platform/transforms/TransformationMatrix.cpp b/Source/platform/transforms/TransformationMatrix.cpp
index 7df46efa8fb107e9b33bfc599a6a0276fa28a284..fe702767692060f1ed36019e1d9cb1f204ab08a0 100644
--- a/Source/platform/transforms/TransformationMatrix.cpp
+++ b/Source/platform/transforms/TransformationMatrix.cpp
@@ -633,21 +633,6 @@ TransformationMatrix& TransformationMatrix::scale(double s)
return scaleNonUniform(s, s);
}
-TransformationMatrix& TransformationMatrix::rotateFromVector(double x, double y)
-{
- return rotate(rad2deg(atan2(y, x)));
-}
-
-TransformationMatrix& TransformationMatrix::flipX()
-{
- return scaleNonUniform(-1.0, 1.0);
-}
-
-TransformationMatrix& TransformationMatrix::flipY()
-{
- return scaleNonUniform(1.0, -1.0);
-}
-
FloatPoint TransformationMatrix::projectPoint(const FloatPoint& p, bool* clamped) const
{
// This is basically raytracing. We have a point in the destination
@@ -1641,14 +1626,6 @@ bool TransformationMatrix::isIntegerTranslation() const
return true;
}
-TransformationMatrix TransformationMatrix::to2dTransform() const
-{
- return TransformationMatrix(m_matrix[0][0], m_matrix[0][1], 0, m_matrix[0][3],
- m_matrix[1][0], m_matrix[1][1], 0, m_matrix[1][3],
- 0, 0, 1, 0,
- m_matrix[3][0], m_matrix[3][1], 0, m_matrix[3][3]);
-}
-
FloatSize TransformationMatrix::to2DTranslation() const
{
ASSERT(isIdentityOr2DTranslation());
« no previous file with comments | « Source/platform/transforms/TransformationMatrix.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698