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

Side by Side Diff: core/src/fxge/agg/agg23/agg_rendering_buffer.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 // class rendering_buffer 17 // class rendering_buffer
18 // 18 //
19 //---------------------------------------------------------------------------- 19 //----------------------------------------------------------------------------
20 #ifndef AGG_RENDERING_BUFFER_INCLUDED 20 #ifndef AGG_RENDERING_BUFFER_INCLUDED
21 #define AGG_RENDERING_BUFFER_INCLUDED 21 #define AGG_RENDERING_BUFFER_INCLUDED
22 #include "agg_basics.h" 22 #include "agg_basics.h"
23 namespace agg 23 namespace agg
24 { 24 {
25 class rendering_buffer : public CFX_Object 25 class rendering_buffer
26 { 26 {
27 public: 27 public:
28 struct row_data : public CFX_Object { 28 struct row_data {
29 int x1, x2; 29 int x1, x2;
30 const int8u* ptr; 30 const int8u* ptr;
31 row_data() {} 31 row_data() {}
32 row_data(int x1_, int x2_, const int8u* ptr_) : 32 row_data(int x1_, int x2_, const int8u* ptr_) :
33 x1(x1_), x2(x2_), ptr(ptr_) {} 33 x1(x1_), x2(x2_), ptr(ptr_) {}
34 }; 34 };
35 struct span_data : public CFX_Object { 35 struct span_data {
36 int x; 36 int x;
37 unsigned len; 37 unsigned len;
38 int8u* ptr; 38 int8u* ptr;
39 span_data() {} 39 span_data() {}
40 span_data(int) : x(0), len(0), ptr(0) {} 40 span_data(int) : x(0), len(0), ptr(0) {}
41 span_data(int x_, unsigned len_, int8u* ptr_) : 41 span_data(int x_, unsigned len_, int8u* ptr_) :
42 x(x_), len(len_), ptr(ptr_) {} 42 x(x_), len(len_), ptr(ptr_) {}
43 }; 43 };
44 ~rendering_buffer() 44 ~rendering_buffer()
45 { 45 {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 private: 136 private:
137 int8u* m_buf; 137 int8u* m_buf;
138 int8u** m_rows; 138 int8u** m_rows;
139 unsigned m_width; 139 unsigned m_width;
140 unsigned m_height; 140 unsigned m_height;
141 int m_stride; 141 int m_stride;
142 unsigned m_max_height; 142 unsigned m_max_height;
143 }; 143 };
144 } 144 }
145 #endif 145 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/agg/agg23/agg_renderer_scanline.h ('k') | core/src/fxge/agg/agg23/agg_scanline_u.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698