diff options
author | tsepez <tsepez@chromium.org> | 2016-09-02 16:56:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-02 16:56:21 -0700 |
commit | 6296f2d501e2749d98e890ed722f923ee584c9ca (patch) | |
tree | b2eaeda969c65c52132f75cc0391cbd35ee6557a /core/fxcrt/include | |
parent | e106b50129d5b8ce50228c67d3b0170bc46c4b2e (diff) | |
download | pdfium-6296f2d501e2749d98e890ed722f923ee584c9ca.tar.xz |
Remove CFX_Matrix::Copy() in favor of assignment
The default assignment operator will suffice and allows
us to write matrix1 = matrix2;
Review-Url: https://codereview.chromium.org/2307953003
Diffstat (limited to 'core/fxcrt/include')
-rw-r--r-- | core/fxcrt/include/fx_coordinates.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/fxcrt/include/fx_coordinates.h b/core/fxcrt/include/fx_coordinates.h index 49f6a19859..7da6057ed4 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, |