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

Side by Side Diff: core/src/fxge/agg/agg23/agg_scanline_u.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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
OLDNEW
1 1
2 //---------------------------------------------------------------------------- 2 //----------------------------------------------------------------------------
3 // Anti-Grain Geometry - Version 2.3 3 // Anti-Grain Geometry - Version 2.3
4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // 5 //
6 // Permission to copy, use, modify, sell and distribute this software 6 // Permission to copy, use, modify, sell and distribute this software
7 // is granted provided this copyright notice appears in all copies. 7 // is granted provided this copyright notice appears in all copies.
8 // This software is provided "as is" without express or implied 8 // This software is provided "as is" without express or implied
9 // warranty, and with no claim as to its suitability for any purpose. 9 // warranty, and with no claim as to its suitability for any purpose.
10 // 10 //
11 //---------------------------------------------------------------------------- 11 //----------------------------------------------------------------------------
12 // Contact: mcseem@antigrain.com 12 // Contact: mcseem@antigrain.com
13 // mcseemagg@yahoo.com 13 // mcseemagg@yahoo.com
14 // http://www.antigrain.com 14 // http://www.antigrain.com
15 //---------------------------------------------------------------------------- 15 //----------------------------------------------------------------------------
16 // 16 //
17 // Adaptation for 32-bit screen coordinates (scanline32_u) has been sponsored by 17 // Adaptation for 32-bit screen coordinates (scanline32_u) has been sponsored by
18 // Liberty Technology Systems, Inc., visit http://lib-sys.com 18 // Liberty Technology Systems, Inc., visit http://lib-sys.com
19 // 19 //
20 // Liberty Technology Systems, Inc. is the provider of 20 // Liberty Technology Systems, Inc. is the provider of
21 // PostScript and PDF technology for software developers. 21 // PostScript and PDF technology for software developers.
22 // 22 //
23 //---------------------------------------------------------------------------- 23 //----------------------------------------------------------------------------
24 #ifndef AGG_SCANLINE_U_INCLUDED 24 #ifndef AGG_SCANLINE_U_INCLUDED
25 #define AGG_SCANLINE_U_INCLUDED 25 #define AGG_SCANLINE_U_INCLUDED
26 #include "agg_array.h" 26 #include "agg_array.h"
27 namespace agg 27 namespace agg
28 { 28 {
29 template<class CoverT> class scanline_u : public CFX_Object 29 template<class CoverT> class scanline_u
30 { 30 {
31 public: 31 public:
32 typedef scanline_u<CoverT> self_type; 32 typedef scanline_u<CoverT> self_type;
33 typedef CoverT cover_type; 33 typedef CoverT cover_type;
34 typedef int16 coord_type; 34 typedef int16 coord_type;
35 struct span : public CFX_Object { 35 struct span {
36 coord_type x; 36 coord_type x;
37 coord_type len; 37 coord_type len;
38 cover_type* covers; 38 cover_type* covers;
39 }; 39 };
40 typedef span* iterator; 40 typedef span* iterator;
41 typedef const span* const_iterator; 41 typedef const span* const_iterator;
42 ~scanline_u() 42 ~scanline_u()
43 { 43 {
44 FX_Free(m_spans); 44 FX_Free(m_spans);
45 FX_Free(m_covers); 45 FX_Free(m_covers);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 unsigned m_max_len; 141 unsigned m_max_len;
142 int m_last_x; 142 int m_last_x;
143 int m_y; 143 int m_y;
144 cover_type* m_covers; 144 cover_type* m_covers;
145 span* m_spans; 145 span* m_spans;
146 span* m_cur_span; 146 span* m_cur_span;
147 }; 147 };
148 typedef scanline_u<int8u> scanline_u8; 148 typedef scanline_u<int8u> scanline_u8;
149 } 149 }
150 #endif 150 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/agg/agg23/agg_rendering_buffer.h ('k') | core/src/fxge/agg/agg23/agg_vcgen_dash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698