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

Unified Diff: core/fxcrt/include/fx_coordinates.h

Issue 2307953003: Remove CFX_Matrix::Copy() in favor of assignment (Closed)
Patch Set: Created 4 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 | « core/fpdftext/cpdf_textpage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcrt/include/fx_coordinates.h
diff --git a/core/fxcrt/include/fx_coordinates.h b/core/fxcrt/include/fx_coordinates.h
index 49f6a19859d717e29f80f1a471581c8fda558846..7da6057ed4d7f75b1471e44d399805dab3ef4a14 100644
--- a/core/fxcrt/include/fx_coordinates.h
+++ b/core/fxcrt/include/fx_coordinates.h
@@ -582,27 +582,21 @@ class CFX_Matrix {
void Concat(const CFX_Matrix& m, FX_BOOL bPrepended = FALSE);
void ConcatInverse(const CFX_Matrix& m, FX_BOOL bPrepended = FALSE);
- void Copy(const CFX_Matrix& m) { *this = m; }
-
FX_BOOL IsIdentity() const {
return a == 1 && b == 0 && c == 0 && d == 1 && e == 0 && f == 0;
}
- FX_BOOL IsInvertible() const;
+ FX_BOOL IsInvertible() const;
FX_BOOL Is90Rotated() const;
-
FX_BOOL IsScaled() const;
void Translate(FX_FLOAT x, FX_FLOAT y, FX_BOOL bPrepended = FALSE);
-
void TranslateI(int32_t x, int32_t y, FX_BOOL bPrepended = FALSE) {
Translate((FX_FLOAT)x, (FX_FLOAT)y, bPrepended);
}
void Scale(FX_FLOAT sx, FX_FLOAT sy, FX_BOOL bPrepended = FALSE);
-
void Rotate(FX_FLOAT fRadian, FX_BOOL bPrepended = FALSE);
-
void RotateAt(FX_FLOAT fRadian,
FX_FLOAT x,
FX_FLOAT y,
@@ -613,12 +607,9 @@ class CFX_Matrix {
FX_BOOL bPrepended = FALSE);
void MatchRect(const CFX_FloatRect& dest, const CFX_FloatRect& src);
-
FX_FLOAT GetXUnit() const;
-
FX_FLOAT GetYUnit() const;
void GetUnitRect(CFX_RectF& rect) const;
-
CFX_FloatRect GetUnitRect() const;
FX_FLOAT GetUnitArea() const;
@@ -643,7 +634,6 @@ class CFX_Matrix {
void TransformVector(CFX_Vector& v) const;
void TransformRect(CFX_RectF& rect) const;
void TransformRect(CFX_Rect& rect) const;
-
void TransformRect(FX_FLOAT& left,
FX_FLOAT& right,
FX_FLOAT& top,
« no previous file with comments | « core/fpdftext/cpdf_textpage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698