diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-25 11:17:16 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-25 11:17:16 -0800 |
commit | ea1ae9915d1702ab62af520b1487f70a553fc6ae (patch) | |
tree | 2fb77cd9537fa4e5a9b02895343d5abe20b51356 /core/src/fxcrt/fx_basic_coords.cpp | |
parent | f014768833406e68234eeb4f8ba94cabf766dff3 (diff) | |
download | pdfium-ea1ae9915d1702ab62af520b1487f70a553fc6ae.tar.xz |
Make CFX_PSVTemplate simpler.
Add default ctor so we don't have to zero these out.
Also, make CFX_VTemplate simpler.
Also, remove the Set() method in favor of assignment.
Also, remove CFX_FloatPoint define.
Also, remove unused (and wrong) CFX_VTemplate methods.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1733523003 .
Diffstat (limited to 'core/src/fxcrt/fx_basic_coords.cpp')
-rw-r--r-- | core/src/fxcrt/fx_basic_coords.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/core/src/fxcrt/fx_basic_coords.cpp b/core/src/fxcrt/fx_basic_coords.cpp index 814fa36347..27feb55113 100644 --- a/core/src/fxcrt/fx_basic_coords.cpp +++ b/core/src/fxcrt/fx_basic_coords.cpp @@ -217,8 +217,7 @@ void CFX_FloatRect::UpdateRect(FX_FLOAT x, FX_FLOAT y) { top = y; } } -CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_FloatPoint* pPoints, - int nPoints) { +CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_PointF* pPoints, int nPoints) { if (nPoints == 0) { return CFX_FloatRect(); } @@ -454,27 +453,6 @@ void CFX_Matrix::TransformVector(CFX_Vector& v) const { v.x = FXSYS_round(fx); v.y = FXSYS_round(fy); } -void CFX_Matrix::TransformPoints(CFX_Point* points, int32_t iCount) const { - FXSYS_assert(iCount > 0); - FX_FLOAT fx, fy; - for (int32_t i = 0; i < iCount; i++) { - fx = a * points->x + c * points->y + e; - fy = b * points->x + d * points->y + f; - points->x = FXSYS_round(fx); - points->y = FXSYS_round(fy); - points++; - } -} -void CFX_Matrix::TransformPoints(CFX_PointF* points, int32_t iCount) const { - FXSYS_assert(iCount > 0); - FX_FLOAT fx, fy; - for (int32_t i = 0; i < iCount; i++) { - fx = a * points->x + c * points->y + e; - fy = b * points->x + d * points->y + f; - points->x = fx, points->y = fy; - points++; - } -} void CFX_Matrix::TransformPoint(FX_FLOAT& x, FX_FLOAT& y) const { FX_FLOAT fx = a * x + c * y + e; FX_FLOAT fy = b * x + d * y + f; |