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

Side by Side Diff: core/include/fpdfapi/fpdf_render.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
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/include/fpdfapi/fpdf_resource.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 #ifndef _FPDF_RENDER_ 7 #ifndef _FPDF_RENDER_
8 #define _FPDF_RENDER_ 8 #define _FPDF_RENDER_
9 #ifndef _FPDF_PAGE_ 9 #ifndef _FPDF_PAGE_
10 #include "fpdf_page.h" 10 #include "fpdf_page.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #define RENDER_FORCE_HALFTONE 0x00000040 48 #define RENDER_FORCE_HALFTONE 0x00000040
49 #define RENDER_RECT_AA 0x00000080 49 #define RENDER_RECT_AA 0x00000080
50 #define RENDER_FILL_FULLCOVER 0x00000100 50 #define RENDER_FILL_FULLCOVER 0x00000100
51 #define RENDER_PRINTIMAGETEXT 0x00000200 51 #define RENDER_PRINTIMAGETEXT 0x00000200
52 #define RENDER_OVERPRINT 0x00000400 52 #define RENDER_OVERPRINT 0x00000400
53 #define RENDER_THINLINE 0x00000800 53 #define RENDER_THINLINE 0x00000800
54 #define RENDER_NOTEXTSMOOTH 0x10000000 54 #define RENDER_NOTEXTSMOOTH 0x10000000
55 #define RENDER_NOPATHSMOOTH 0x20000000 55 #define RENDER_NOPATHSMOOTH 0x20000000
56 #define RENDER_NOIMAGESMOOTH 0x40000000 56 #define RENDER_NOIMAGESMOOTH 0x40000000
57 #define RENDER_LIMITEDIMAGECACHE 0x80000000 57 #define RENDER_LIMITEDIMAGECACHE 0x80000000
58 class CPDF_RenderOptions : public CFX_Object 58 class CPDF_RenderOptions
59 { 59 {
60 public: 60 public:
61 61
62 CPDF_RenderOptions(); 62 CPDF_RenderOptions();
63 63
64 int m_ColorMode; 64 int m_ColorMode;
65 65
66 FX_COLORREF m_BackColor; 66 FX_COLORREF m_BackColor;
67 67
68 FX_COLORREF m_ForeColor; 68 FX_COLORREF m_ForeColor;
69 69
70 FX_DWORD m_Flags; 70 FX_DWORD m_Flags;
71 71
72 int m_Interpolation; 72 int m_Interpolation;
73 73
74 FX_DWORD m_AddFlags; 74 FX_DWORD m_AddFlags;
75 75
76 IPDF_OCContext* m_pOCContext; 76 IPDF_OCContext* m_pOCContext;
77 77
78 FX_DWORD m_dwLimitCacheSize; 78 FX_DWORD m_dwLimitCacheSize;
79 79
80 int m_HalftoneLimit; 80 int m_HalftoneLimit;
81 81
82 FX_ARGB TranslateColor(FX_ARGB argb) const; 82 FX_ARGB TranslateColor(FX_ARGB argb) const;
83 }; 83 };
84 class CPDF_RenderContext : public CFX_Object 84 class CPDF_RenderContext
85 { 85 {
86 public: 86 public:
87 87
88 CPDF_RenderContext(); 88 CPDF_RenderContext();
89 89
90 void Create(CPDF_Page* pPage, FX_BOOL bFirstLayer = T RUE); 90 void Create(CPDF_Page* pPage, FX_BOOL bFirstLayer = T RUE);
91 91
92 void Create(CPDF_Document* pDoc = NULL, CPDF_PageRend erCache* pPageCache = NULL, 92 void Create(CPDF_Document* pDoc = NULL, CPDF_PageRend erCache* pPageCache = NULL,
93 CPDF_Dictionary* pPageResources = NULL, FX_BOOL bFirs tLayer = TRUE); 93 CPDF_Dictionary* pPageResources = NULL, FX_BOOL bFirs tLayer = TRUE);
94 94
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 }; 137 };
138 class IPDF_BackgroundDraw 138 class IPDF_BackgroundDraw
139 { 139 {
140 public: 140 public:
141 virtual ~IPDF_BackgroundDraw() { } 141 virtual ~IPDF_BackgroundDraw() { }
142 virtual void OnDrawBackground( 142 virtual void OnDrawBackground(
143 CFX_RenderDevice* pBitmapDevice, 143 CFX_RenderDevice* pBitmapDevice,
144 const CFX_AffineMatrix* pOriginal2Bitmap 144 const CFX_AffineMatrix* pOriginal2Bitmap
145 ) = 0; 145 ) = 0;
146 }; 146 };
147 class CPDF_ProgressiveRenderer : public CFX_Object 147 class CPDF_ProgressiveRenderer
148 { 148 {
149 public: 149 public:
150 150
151 CPDF_ProgressiveRenderer(); 151 CPDF_ProgressiveRenderer();
152 152
153 ~CPDF_ProgressiveRenderer(); 153 ~CPDF_ProgressiveRenderer();
154 154
155 typedef enum { 155 typedef enum {
156 Ready, 156 Ready,
157 ToBeContinued, 157 ToBeContinued,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 FX_DWORD m_LayerIndex; 194 FX_DWORD m_LayerIndex;
195 195
196 FX_DWORD m_ObjectIndex; 196 FX_DWORD m_ObjectIndex;
197 197
198 FX_POSITION m_ObjectPos; 198 FX_POSITION m_ObjectPos;
199 199
200 FX_POSITION m_PrevLastPos; 200 FX_POSITION m_PrevLastPos;
201 201
202 void RenderStep(); 202 void RenderStep();
203 }; 203 };
204 class CPDF_TextRenderer : public CFX_Object 204 class CPDF_TextRenderer
205 { 205 {
206 public: 206 public:
207 207
208 static void DrawTextString(CFX_RenderDevice* pDevice, int left, int top, 208 static void DrawTextString(CFX_RenderDevice* pDevice, int left, int top,
209 CPDF_Font* pFont, 209 CPDF_Font* pFont,
210 int height, 210 int height,
211 const CFX_ByteString& str, 211 const CFX_ByteString& str,
212 FX_ARGB argb); 212 FX_ARGB argb);
213 213
214 static void DrawTextString(CFX_RenderDevice* pDevice, FX_FLOAT origi n_x, FX_FLOAT origin_y, 214 static void DrawTextString(CFX_RenderDevice* pDevice, FX_FLOAT origi n_x, FX_FLOAT origin_y,
(...skipping 27 matching lines...) Expand all
242 242
243 static IPDF_PageImageCache* Create(); 243 static IPDF_PageImageCache* Create();
244 244
245 virtual ~IPDF_PageImageCache() {} 245 virtual ~IPDF_PageImageCache() {}
246 246
247 virtual void OutputPage(CFX_RenderDevice* pDevice, CPDF_Page* pPage, 247 virtual void OutputPage(CFX_RenderDevice* pDevice, CPDF_Page* pPage,
248 int pos_x, int pos_y, int size_x, int size_y, int rotate) = 0; 248 int pos_x, int pos_y, int size_x, int size_y, int rotate) = 0;
249 249
250 virtual void SetCacheLimit(FX_DWORD limit) = 0; 250 virtual void SetCacheLimit(FX_DWORD limit) = 0;
251 }; 251 };
252 class CPDF_PageRenderCache : public CFX_Object 252 class CPDF_PageRenderCache
253 { 253 {
254 public: 254 public:
255 CPDF_PageRenderCache(CPDF_Page* pPage) 255 CPDF_PageRenderCache(CPDF_Page* pPage)
256 { 256 {
257 m_pPage = pPage; 257 m_pPage = pPage;
258 m_nTimeCount = 0; 258 m_nTimeCount = 0;
259 m_nCacheSize = 0; 259 m_nCacheSize = 0;
260 m_pCurImageCache = NULL; 260 m_pCurImageCache = NULL;
261 m_bCurFindCache = FALSE; 261 m_bCurFindCache = FALSE;
262 m_pCurImageCaches = NULL; 262 m_pCurImageCaches = NULL;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 CPDF_ImageCache* m_pCurImageCache; 300 CPDF_ImageCache* m_pCurImageCache;
301 CFX_PtrArray* m_pCurImageCaches; 301 CFX_PtrArray* m_pCurImageCaches;
302 protected: 302 protected:
303 friend class CPDF_Page; 303 friend class CPDF_Page;
304 CPDF_Page* m_pPage; 304 CPDF_Page* m_pPage;
305 305
306 FX_DWORD m_nTimeCount; 306 FX_DWORD m_nTimeCount;
307 FX_DWORD m_nCacheSize; 307 FX_DWORD m_nCacheSize;
308 FX_BOOL m_bCurFindCache; 308 FX_BOOL m_bCurFindCache;
309 }; 309 };
310 class CPDF_RenderConfig : public CFX_Object 310 class CPDF_RenderConfig
311 { 311 {
312 public: 312 public:
313 CPDF_RenderConfig(); 313 CPDF_RenderConfig();
314 ~CPDF_RenderConfig(); 314 ~CPDF_RenderConfig();
315 int m_HalftoneLimit; 315 int m_HalftoneLimit;
316 int m_RenderStepLimit; 316 int m_RenderStepLimit;
317 }; 317 };
318 #endif 318 #endif
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/include/fpdfapi/fpdf_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698