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

Side by Side Diff: xfa/fxgraphics/cfx_path_generator.cpp

Issue 1810563002: Move xfa/include/fxgraphics/fx_graphics.h to xfa/fxgraphics. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | « xfa/fxgraphics/cfx_path_generator.h ('k') | xfa/fxgraphics/cfx_pattern.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 #include "xfa/fxgraphics/fx_path_generator.h" 7 #include "xfa/fxgraphics/cfx_path_generator.h"
8
9 #include "xfa/fxgraphics/pre.h"
10 8
11 CFX_PathGenerator::CFX_PathGenerator() { 9 CFX_PathGenerator::CFX_PathGenerator() {
12 m_pPathData = NULL; 10 m_pPathData = NULL;
13 } 11 }
14 void CFX_PathGenerator::Create() { 12 void CFX_PathGenerator::Create() {
15 m_pPathData = new CFX_PathData; 13 m_pPathData = new CFX_PathData;
16 } 14 }
17 CFX_PathGenerator::~CFX_PathGenerator() { 15 CFX_PathGenerator::~CFX_PathGenerator() {
18 if (m_pPathData) { 16 if (m_pPathData) {
19 delete m_pPathData; 17 delete m_pPathData;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 m_pPathData->SetPoint(old_count, x, y, FXPT_MOVETO); 190 m_pPathData->SetPoint(old_count, x, y, FXPT_MOVETO);
193 m_pPathData->SetPoint(old_count + 1, x + (width * FXSYS_cos(start_angle)), 191 m_pPathData->SetPoint(old_count + 1, x + (width * FXSYS_cos(start_angle)),
194 y + (height * FXSYS_sin(start_angle)), FXPT_LINETO); 192 y + (height * FXSYS_sin(start_angle)), FXPT_LINETO);
195 return; 193 return;
196 } 194 }
197 AddArc(x, y, width, height, start_angle, sweep_angle); 195 AddArc(x, y, width, height, start_angle, sweep_angle);
198 m_pPathData->AddPointCount(1); 196 m_pPathData->AddPointCount(1);
199 m_pPathData->SetPoint(m_pPathData->GetPointCount() - 1, x, y, 197 m_pPathData->SetPoint(m_pPathData->GetPointCount() - 1, x, y,
200 FXPT_LINETO | FXPT_CLOSEFIGURE); 198 FXPT_LINETO | FXPT_CLOSEFIGURE);
201 } 199 }
OLDNEW
« no previous file with comments | « xfa/fxgraphics/cfx_path_generator.h ('k') | xfa/fxgraphics/cfx_pattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698