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

Side by Side Diff: xfa/fde/cfde_path.h

Issue 1960673003: Replace some calls to Release() with direct delete, part 1. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Another unique_ptr. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « core/fxcodec/codec/fx_codec_jpeg.cpp ('k') | xfa/fde/css/fde_cssstyleselector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FDE_CFDE_PATH_H_ 7 #ifndef XFA_FDE_CFDE_PATH_H_
8 #define XFA_FDE_CFDE_PATH_H_ 8 #define XFA_FDE_CFDE_PATH_H_
9 9
10 #include "core/fxge/include/fx_ge.h" 10 #include "core/fxge/include/fx_ge.h"
11 #include "xfa/fgas/crt/fgas_memory.h" 11 #include "xfa/fgas/crt/fgas_memory.h"
12 12
13 class CFDE_Path : public CFX_Target { 13 class CFDE_Path : public CFX_Target {
14 public: 14 public:
15 void Release() { delete this; }
16
17 FX_BOOL StartFigure(); 15 FX_BOOL StartFigure();
18 FX_BOOL CloseFigure(); 16 FX_BOOL CloseFigure();
19 17
20 void AddBezier(const CFX_PointsF& points); 18 void AddBezier(const CFX_PointsF& points);
21 void AddBeziers(const CFX_PointsF& points); 19 void AddBeziers(const CFX_PointsF& points);
22 void AddCurve(const CFX_PointsF& points, 20 void AddCurve(const CFX_PointsF& points,
23 FX_BOOL bClosed, 21 FX_BOOL bClosed,
24 FX_FLOAT fTension = 0.5f); 22 FX_FLOAT fTension = 0.5f);
25 void AddEllipse(const CFX_RectF& rect); 23 void AddEllipse(const CFX_RectF& rect);
26 void AddLines(const CFX_PointsF& points); 24 void AddLines(const CFX_PointsF& points);
(...skipping 20 matching lines...) Expand all
47 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } 45 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); }
48 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } 46 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); }
49 void GetCurveTangents(const CFX_PointsF& points, 47 void GetCurveTangents(const CFX_PointsF& points,
50 CFX_PointsF& tangents, 48 CFX_PointsF& tangents,
51 FX_BOOL bClosed, 49 FX_BOOL bClosed,
52 FX_FLOAT fTension) const; 50 FX_FLOAT fTension) const;
53 CFX_PathData m_Path; 51 CFX_PathData m_Path;
54 }; 52 };
55 53
56 #endif // XFA_FDE_CFDE_PATH_H_ 54 #endif // XFA_FDE_CFDE_PATH_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/fx_codec_jpeg.cpp ('k') | xfa/fde/css/fde_cssstyleselector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698