summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_path.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-10 10:16:06 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-10 21:16:19 +0000
commit7ffb59f7f540a67fb808c1e5a2a7edfacf125e3a (patch)
tree7f6fc5563912ce4b6e8878b4b5fe337eac3d40a8 /xfa/fde/cfde_path.h
parentf7520395821090b36a5ad8c658a844c3342dbf66 (diff)
downloadpdfium-7ffb59f7f540a67fb808c1e5a2a7edfacf125e3a.tar.xz
Remove CFDE_Path
This CL removes CFDE_Path. There is only one method, AddLine which is required, the rest can be removed. That method is moved to CFX_PathData which is what CFDE_Path is appending to anyway. Change-Id: If50af8cf856a9f7379791fe1999174db5fd13e38 Reviewed-on: https://pdfium-review.googlesource.com/10454 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_path.h')
-rw-r--r--xfa/fde/cfde_path.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/xfa/fde/cfde_path.h b/xfa/fde/cfde_path.h
deleted file mode 100644
index b0a229f172..0000000000
--- a/xfa/fde/cfde_path.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FDE_CFDE_PATH_H_
-#define XFA_FDE_CFDE_PATH_H_
-
-#include <vector>
-
-#include "core/fxge/cfx_pathdata.h"
-#include "core/fxge/cfx_renderdevice.h"
-
-class CFDE_Path {
- public:
- void CloseFigure();
-
- void AddBezier(const std::vector<CFX_PointF>& points);
- void AddBeziers(const std::vector<CFX_PointF>& points);
- void AddCurve(const std::vector<CFX_PointF>& points,
- bool bClosed,
- float fTension = 0.5f);
- void AddEllipse(const CFX_RectF& rect);
- void AddLines(const std::vector<CFX_PointF>& points);
- void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2);
- void AddPath(const CFDE_Path* pSrc, bool bConnect);
- void AddPolygon(const std::vector<CFX_PointF>& points);
- void AddRectangle(const CFX_RectF& rect);
-
- CFX_RectF GetBBox() const;
- CFX_RectF GetBBox(float fLineWidth, float fMiterLimit) const;
-
- bool FigureClosed() const;
- void BezierTo(const CFX_PointF& p1,
- const CFX_PointF& p2,
- const CFX_PointF& p3);
- void ArcTo(bool bStart,
- const CFX_RectF& rect,
- float startAngle,
- float endAngle);
- void MoveTo(const CFX_PointF& p);
- void LineTo(const CFX_PointF& p);
-
- void GetCurveTangents(const std::vector<CFX_PointF>& points,
- std::vector<CFX_PointF>* tangents,
- bool bClosed,
- float fTension) const;
- CFX_PathData m_Path;
-};
-
-#endif // XFA_FDE_CFDE_PATH_H_