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

Side by Side Diff: core/include/fxge/fx_ge.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/fxge/fx_font.h ('k') | core/src/fpdfapi/fpdf_edit/editint.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 _FX_GE_H_ 7 #ifndef _FX_GE_H_
8 #define _FX_GE_H_ 8 #define _FX_GE_H_
9 #ifndef _FX_DIB_H_ 9 #ifndef _FX_DIB_H_
10 #include "fx_dib.h" 10 #include "fx_dib.h"
11 #endif 11 #endif
12 #ifndef _FX_FONT_H_ 12 #ifndef _FX_FONT_H_
13 #include "fx_font.h" 13 #include "fx_font.h"
14 #endif 14 #endif
15 class CFX_ClipRgn; 15 class CFX_ClipRgn;
16 class CFX_PathData; 16 class CFX_PathData;
17 class CFX_GraphStateData; 17 class CFX_GraphStateData;
18 class CFX_Font; 18 class CFX_Font;
19 class CFX_FontMgr; 19 class CFX_FontMgr;
20 class CFX_FontCache; 20 class CFX_FontCache;
21 class CFX_FaceCache; 21 class CFX_FaceCache;
22 class CFX_RenderDevice; 22 class CFX_RenderDevice;
23 class IFX_RenderDeviceDriver; 23 class IFX_RenderDeviceDriver;
24 class CCodec_ModuleMgr; 24 class CCodec_ModuleMgr;
25 class IFXG_PaintModuleMgr; 25 class IFXG_PaintModuleMgr;
26 class CFX_GEModule : public CFX_Object 26 class CFX_GEModule
27 { 27 {
28 public: 28 public:
29 29
30 static void Create(); 30 static void Create();
31 31
32 static void Use(CFX_GEModule* pMgr); 32 static void Use(CFX_GEModule* pMgr);
33 33
34 static CFX_GEModule* Get(); 34 static CFX_GEModule* Get();
35 35
36 static void Destroy(); 36 static void Destroy();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 int m_Flag; 81 int m_Flag;
82 } FX_PATHPOINT; 82 } FX_PATHPOINT;
83 #define FXPT_CLOSEFIGURE 0x01 83 #define FXPT_CLOSEFIGURE 0x01
84 #define FXPT_LINETO 0x02 84 #define FXPT_LINETO 0x02
85 #define FXPT_BEZIERTO 0x04 85 #define FXPT_BEZIERTO 0x04
86 #define FXPT_MOVETO 0x06 86 #define FXPT_MOVETO 0x06
87 #define FXPT_TYPE 0x06 87 #define FXPT_TYPE 0x06
88 #define FXFILL_ALTERNATE 1 88 #define FXFILL_ALTERNATE 1
89 #define FXFILL_WINDING 2 89 #define FXFILL_WINDING 2
90 class CFX_ClipRgn : public CFX_Object 90 class CFX_ClipRgn
91 { 91 {
92 public: 92 public:
93 93
94 CFX_ClipRgn(int device_width, int device_height); 94 CFX_ClipRgn(int device_width, int device_height);
95 95
96 CFX_ClipRgn(const FX_RECT& rect); 96 CFX_ClipRgn(const FX_RECT& rect);
97 97
98 CFX_ClipRgn(const CFX_ClipRgn& src); 98 CFX_ClipRgn(const CFX_ClipRgn& src);
99 99
100 ~CFX_ClipRgn(); 100 ~CFX_ClipRgn();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #define FX_GAMMA(value) (value) 139 #define FX_GAMMA(value) (value)
140 #define FX_GAMMA_INVERSE(value) (value) 140 #define FX_GAMMA_INVERSE(value) (value)
141 inline FX_ARGB ArgbGamma(FX_ARGB argb) 141 inline FX_ARGB ArgbGamma(FX_ARGB argb)
142 { 142 {
143 return argb; 143 return argb;
144 } 144 }
145 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) 145 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb)
146 { 146 {
147 return argb; 147 return argb;
148 } 148 }
149 class CFX_PathData : public CFX_Object 149 class CFX_PathData
150 { 150 {
151 public: 151 public:
152 152
153 CFX_PathData(); 153 CFX_PathData();
154 154
155 CFX_PathData(const CFX_PathData& src); 155 CFX_PathData(const CFX_PathData& src);
156 156
157 ~CFX_PathData(); 157 ~CFX_PathData();
158 158
159 159
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 FX_BOOL Copy(const CFX_PathData &src); 215 FX_BOOL Copy(const CFX_PathData &src);
216 protected: 216 protected:
217 friend class CPDF_Path; 217 friend class CPDF_Path;
218 218
219 int m_PointCount; 219 int m_PointCount;
220 220
221 FX_PATHPOINT* m_pPoints; 221 FX_PATHPOINT* m_pPoints;
222 222
223 int m_AllocCount; 223 int m_AllocCount;
224 }; 224 };
225 class CFX_GraphStateData : public CFX_Object 225 class CFX_GraphStateData
226 { 226 {
227 public: 227 public:
228 228
229 CFX_GraphStateData(); 229 CFX_GraphStateData();
230 230
231 CFX_GraphStateData(const CFX_GraphStateData& src); 231 CFX_GraphStateData(const CFX_GraphStateData& src);
232 232
233 ~CFX_GraphStateData(); 233 ~CFX_GraphStateData();
234 234
235 void Copy(const CFX_GraphStateData& src); 235 void Copy(const CFX_GraphStateData& src);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 #define FXTEXT_NOSMOOTH 0x20 298 #define FXTEXT_NOSMOOTH 0x20
299 typedef struct { 299 typedef struct {
300 FX_DWORD m_GlyphIndex; 300 FX_DWORD m_GlyphIndex;
301 FX_FLOAT m_OriginX, m_OriginY; 301 FX_FLOAT m_OriginX, m_OriginY;
302 int m_FontCharWidth; 302 int m_FontCharWidth;
303 FX_BOOL m_bGlyphAdjust; 303 FX_BOOL m_bGlyphAdjust;
304 FX_FLOAT m_AdjustMatrix[4]; 304 FX_FLOAT m_AdjustMatrix[4];
305 FX_DWORD m_ExtGID; 305 FX_DWORD m_ExtGID;
306 FX_BOOL m_bFontStyle; 306 FX_BOOL m_bFontStyle;
307 } FXTEXT_CHARPOS; 307 } FXTEXT_CHARPOS;
308 class CFX_RenderDevice : public CFX_Object 308 class CFX_RenderDevice
309 { 309 {
310 public: 310 public:
311 CFX_RenderDevice(); 311 CFX_RenderDevice();
312 312
313 virtual ~CFX_RenderDevice(); 313 virtual ~CFX_RenderDevice();
314 314
315 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver) ; 315 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver) ;
316 316
317 IFX_RenderDeviceDriver* GetDeviceDriver() const 317 IFX_RenderDeviceDriver* GetDeviceDriver() const
318 { 318 {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 ~CFX_SkiaDevice(); 499 ~CFX_SkiaDevice();
500 500
501 FX_BOOL Attach(CFX_DIBitmap* pBitmap, int dither_bits = 0, FX_BOOL bRgbByteOrder = FALSE, CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGrou pKnockout = FALSE); 501 FX_BOOL Attach(CFX_DIBitmap* pBitmap, int dither_bits = 0, FX_BOOL bRgbByteOrder = FALSE, CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGrou pKnockout = FALSE);
502 502
503 FX_BOOL Create(int width, int height, FXDIB_Format forma t, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL); 503 FX_BOOL Create(int width, int height, FXDIB_Format forma t, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL);
504 protected: 504 protected:
505 505
506 FX_BOOL m_bOwnedBitmap; 506 FX_BOOL m_bOwnedBitmap;
507 }; 507 };
508 class IFX_RenderDeviceDriver : public CFX_Object 508 class IFX_RenderDeviceDriver
509 { 509 {
510 public: 510 public:
511 511
512 static IFX_RenderDeviceDriver* CreateFxgeDriver(CFX_DIBitmap* p Bitmap, FX_BOOL bRgbByteOrder = FALSE, 512 static IFX_RenderDeviceDriver* CreateFxgeDriver(CFX_DIBitmap* p Bitmap, FX_BOOL bRgbByteOrder = FALSE,
513 CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGroupKnockout = FALSE); 513 CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGroupKnockout = FALSE);
514 514
515 virtual ~IFX_RenderDeviceDriver() {} 515 virtual ~IFX_RenderDeviceDriver() {}
516 virtual void Begin() { } 516 virtual void Begin() { }
517 virtual void End() { } 517 virtual void End() { }
518 518
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 class IFX_PSOutput 637 class IFX_PSOutput
638 { 638 {
639 public: 639 public:
640 virtual void Release() = 0; 640 virtual void Release() = 0;
641 virtual void OutputPS(FX_LPCSTR string, int len) = 0; 641 virtual void OutputPS(FX_LPCSTR string, int len) = 0;
642 642
643 protected: 643 protected:
644 ~IFX_PSOutput() { } 644 ~IFX_PSOutput() { }
645 }; 645 };
646 class CPSFont; 646 class CPSFont;
647 class CFX_PSRenderer : public CFX_Object 647 class CFX_PSRenderer
648 { 648 {
649 public: 649 public:
650 650
651 CFX_PSRenderer(); 651 CFX_PSRenderer();
652 652
653 ~CFX_PSRenderer(); 653 ~CFX_PSRenderer();
654 654
655 void Init(IFX_PSOutput* pOutput, int ps_level, int wi dth, int height, FX_BOOL bCmykOutput); 655 void Init(IFX_PSOutput* pOutput, int ps_level, int wi dth, int height, FX_BOOL bCmykOutput);
656 FX_BOOL StartRendering(); 656 FX_BOOL StartRendering();
657 void EndRendering(); 657 void EndRendering();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 void SetGraphState(const CFX_GraphStateData* pGraphSt ate); 727 void SetGraphState(const CFX_GraphStateData* pGraphSt ate);
728 728
729 void SetColor(FX_DWORD color, int alpha_flag, void* p IccTransform); 729 void SetColor(FX_DWORD color, int alpha_flag, void* p IccTransform);
730 730
731 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); 731 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex);
732 732
733 void WritePSBinary(FX_LPCBYTE data, int len); 733 void WritePSBinary(FX_LPCBYTE data, int len);
734 }; 734 };
735 #endif 735 #endif
OLDNEW
« no previous file with comments | « core/include/fxge/fx_font.h ('k') | core/src/fpdfapi/fpdf_edit/editint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698