From 6db6fbcdee9f1887ac02c647210bd5013358f12d Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 20 Jan 2017 12:22:16 -0800 Subject: Remove CFX_Points, CFX_PointsF in favor of std::vector CFX_Points was unused. Review-Url: https://codereview.chromium.org/2645523006 --- xfa/fde/cfde_path.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'xfa/fde/cfde_path.h') diff --git a/xfa/fde/cfde_path.h b/xfa/fde/cfde_path.h index 936a5c8a78..d2d8fe99ec 100644 --- a/xfa/fde/cfde_path.h +++ b/xfa/fde/cfde_path.h @@ -7,6 +7,8 @@ #ifndef XFA_FDE_CFDE_PATH_H_ #define XFA_FDE_CFDE_PATH_H_ +#include + #include "core/fxge/cfx_pathdata.h" #include "core/fxge/cfx_renderdevice.h" @@ -15,16 +17,16 @@ class CFDE_Path { bool StartFigure(); bool CloseFigure(); - void AddBezier(const CFX_PointsF& points); - void AddBeziers(const CFX_PointsF& points); - void AddCurve(const CFX_PointsF& points, + void AddBezier(const std::vector& points); + void AddBeziers(const std::vector& points); + void AddCurve(const std::vector& points, bool bClosed, FX_FLOAT fTension = 0.5f); void AddEllipse(const CFX_RectF& rect); - void AddLines(const CFX_PointsF& points); + void AddLines(const std::vector& points); void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2); void AddPath(const CFDE_Path* pSrc, bool bConnect); - void AddPolygon(const CFX_PointsF& points); + void AddPolygon(const std::vector& points); void AddRectangle(const CFX_RectF& rect); void GetBBox(CFX_RectF& bbox) const; void GetBBox(CFX_RectF& bbox, @@ -44,8 +46,8 @@ class CFDE_Path { FX_FLOAT endAngle); void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } - void GetCurveTangents(const CFX_PointsF& points, - CFX_PointsF& tangents, + void GetCurveTangents(const std::vector& points, + std::vector* tangents, bool bClosed, FX_FLOAT fTension) const; CFX_PathData m_Path; -- cgit v1.2.3