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

Side by Side Diff: third_party/agg23/agg_curves.cpp

Issue 1425163004: Merge to XFA: Fix all relative includes to core. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 1 month 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 | « third_party/agg23/agg_basics.h ('k') | third_party/agg23/agg_path_storage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 //---------------------------------------------------------------------------- 2 //----------------------------------------------------------------------------
3 // XYQ: 2006-01-22 Copied from AGG project. 3 // XYQ: 2006-01-22 Copied from AGG project.
4 // TODO: This file uses intensive floating point operations, so it's NOT suitabl e 4 // TODO: This file uses intensive floating point operations, so it's NOT suitabl e
5 // for platforms like Symbian OS. We need to change to FIX format. 5 // for platforms like Symbian OS. We need to change to FIX format.
6 //---------------------------------------------------------------------------- 6 //----------------------------------------------------------------------------
7 //---------------------------------------------------------------------------- 7 //----------------------------------------------------------------------------
8 // Anti-Grain Geometry - Version 2.3 8 // Anti-Grain Geometry - Version 2.3
9 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) 9 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
10 // 10 //
11 // Permission to copy, use, modify, sell and distribute this software 11 // Permission to copy, use, modify, sell and distribute this software
12 // is granted provided this copyright notice appears in all copies. 12 // is granted provided this copyright notice appears in all copies.
13 // This software is provided "as is" without express or implied 13 // This software is provided "as is" without express or implied
14 // warranty, and with no claim as to its suitability for any purpose. 14 // warranty, and with no claim as to its suitability for any purpose.
15 // 15 //
16 //---------------------------------------------------------------------------- 16 //----------------------------------------------------------------------------
17 // Contact: mcseem@antigrain.com 17 // Contact: mcseem@antigrain.com
18 // mcseemagg@yahoo.com 18 // mcseemagg@yahoo.com
19 // http://www.antigrain.com 19 // http://www.antigrain.com
20 //---------------------------------------------------------------------------- 20 //----------------------------------------------------------------------------
21 #include "../../core/include/fxcrt/fx_basic.h" 21
22 #include "agg_curves.h" 22 #include "agg_curves.h"
23 #include "agg_math.h" 23 #include "agg_math.h"
24 #include "core/include/fxcrt/fx_basic.h"
25
24 namespace agg 26 namespace agg
25 { 27 {
26 const FX_FLOAT curve_collinearity_epsilon = 1e-30f; 28 const FX_FLOAT curve_collinearity_epsilon = 1e-30f;
27 enum curve_recursion_limit_e { curve_recursion_limit = 16 }; 29 enum curve_recursion_limit_e { curve_recursion_limit = 16 };
28 void curve4_div::init(FX_FLOAT x1, FX_FLOAT y1, 30 void curve4_div::init(FX_FLOAT x1, FX_FLOAT y1,
29 FX_FLOAT x2, FX_FLOAT y2, 31 FX_FLOAT x2, FX_FLOAT y2,
30 FX_FLOAT x3, FX_FLOAT y3, 32 FX_FLOAT x3, FX_FLOAT y3,
31 FX_FLOAT x4, FX_FLOAT y4) 33 FX_FLOAT x4, FX_FLOAT y4)
32 { 34 {
33 m_points.remove_all(); 35 m_points.remove_all();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void curve4_div::bezier(FX_FLOAT x1, FX_FLOAT y1, 102 void curve4_div::bezier(FX_FLOAT x1, FX_FLOAT y1,
101 FX_FLOAT x2, FX_FLOAT y2, 103 FX_FLOAT x2, FX_FLOAT y2,
102 FX_FLOAT x3, FX_FLOAT y3, 104 FX_FLOAT x3, FX_FLOAT y3,
103 FX_FLOAT x4, FX_FLOAT y4) 105 FX_FLOAT x4, FX_FLOAT y4)
104 { 106 {
105 m_points.add(point_type(x1, y1)); 107 m_points.add(point_type(x1, y1));
106 recursive_bezier(x1, y1, x2, y2, x3, y3, x4, y4, 0); 108 recursive_bezier(x1, y1, x2, y2, x3, y3, x4, y4, 0);
107 m_points.add(point_type(x4, y4)); 109 m_points.add(point_type(x4, y4));
108 } 110 }
109 } 111 }
OLDNEW
« no previous file with comments | « third_party/agg23/agg_basics.h ('k') | third_party/agg23/agg_path_storage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698