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

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

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. 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 renderer_base 17 // class renderer_base
18 // 18 //
19 //---------------------------------------------------------------------------- 19 //----------------------------------------------------------------------------
20 #ifndef AGG_RENDERER_BASE_INCLUDED 20 #ifndef AGG_RENDERER_BASE_INCLUDED
21 #define AGG_RENDERER_BASE_INCLUDED 21 #define AGG_RENDERER_BASE_INCLUDED
22 #include "agg_basics.h" 22 #include "agg_basics.h"
23 #include "agg_rendering_buffer.h" 23 #include "agg_rendering_buffer.h"
24 namespace agg 24 namespace agg
25 { 25 {
26 template<class PixelFormat> class renderer_base : public CFX_Object 26 template<class PixelFormat> class renderer_base
27 { 27 {
28 public: 28 public:
29 typedef PixelFormat pixfmt_type; 29 typedef PixelFormat pixfmt_type;
30 typedef typename pixfmt_type::color_type color_type; 30 typedef typename pixfmt_type::color_type color_type;
31 typedef typename pixfmt_type::row_data row_data; 31 typedef typename pixfmt_type::row_data row_data;
32 typedef typename pixfmt_type::span_data span_data; 32 typedef typename pixfmt_type::span_data span_data;
33 renderer_base() : m_ren(0), m_clip_box(1, 1, 0, 0) {} 33 renderer_base() : m_ren(0), m_clip_box(1, 1, 0, 0) {}
34 renderer_base(pixfmt_type& ren) : 34 renderer_base(pixfmt_type& ren) :
35 m_ren(&ren), 35 m_ren(&ren),
36 m_clip_box(0, 0, ren.width() - 1, ren.height() - 1) 36 m_clip_box(0, 0, ren.width() - 1, ren.height() - 1)
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 } 155 }
156 m_ren->blend_solid_hspan(x, y, len, c, covers); 156 m_ren->blend_solid_hspan(x, y, len, c, covers);
157 } 157 }
158 private: 158 private:
159 pixfmt_type* m_ren; 159 pixfmt_type* m_ren;
160 rect m_clip_box; 160 rect m_clip_box;
161 }; 161 };
162 } 162 }
163 #endif 163 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/agg/agg23/agg_rasterizer_scanline_aa.h ('k') | core/src/fxge/agg/agg23/agg_renderer_scanline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698