| OLD | NEW |
| 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 CORE_INCLUDE_FXGE_FX_GE_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_H_ |
| 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ | 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ |
| 9 | 9 |
| 10 #include "fx_dib.h" | 10 #include "fx_dib.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 return m_pPlatformData; | 58 return m_pPlatformData; |
| 59 } | 59 } |
| 60 protected: | 60 protected: |
| 61 | 61 |
| 62 CFX_GEModule(); | 62 CFX_GEModule(); |
| 63 | 63 |
| 64 ~CFX_GEModule(); | 64 ~CFX_GEModule(); |
| 65 void InitPlatform(); | 65 void InitPlatform(); |
| 66 void DestroyPlatform(); | 66 void DestroyPlatform(); |
| 67 private: | 67 private: |
| 68 FX_BYTE» » » » » m_GammaValue[256]; | 68 uint8_t» » » » » m_GammaValue[256]; |
| 69 CFX_FontCache* m_pFontCache; | 69 CFX_FontCache* m_pFontCache; |
| 70 CFX_FontMgr* m_pFontMgr; | 70 CFX_FontMgr* m_pFontMgr; |
| 71 CCodec_ModuleMgr* m_pCodecModule; | 71 CCodec_ModuleMgr* m_pCodecModule; |
| 72 void* m_pPlatformData; | 72 void* m_pPlatformData; |
| 73 }; | 73 }; |
| 74 typedef struct { | 74 typedef struct { |
| 75 | 75 |
| 76 FX_FLOAT m_PointX; | 76 FX_FLOAT m_PointX; |
| 77 | 77 |
| 78 FX_FLOAT m_PointY; | 78 FX_FLOAT m_PointY; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 protected: | 126 protected: |
| 127 | 127 |
| 128 ClipType m_Type; | 128 ClipType m_Type; |
| 129 | 129 |
| 130 FX_RECT m_Box; | 130 FX_RECT m_Box; |
| 131 | 131 |
| 132 CFX_DIBitmapRef m_Mask; | 132 CFX_DIBitmapRef m_Mask; |
| 133 | 133 |
| 134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box
, CFX_DIBitmapRef Mask); | 134 void IntersectMaskRect(FX_RECT rect, FX_RECT mask_box
, CFX_DIBitmapRef Mask); |
| 135 }; | 135 }; |
| 136 extern const FX_BYTE g_GammaRamp[256]; | 136 extern const uint8_t g_GammaRamp[256]; |
| 137 extern const FX_BYTE g_GammaInverse[256]; | 137 extern const uint8_t g_GammaInverse[256]; |
| 138 #define FX_GAMMA(value) (value) | 138 #define FX_GAMMA(value) (value) |
| 139 #define FX_GAMMA_INVERSE(value) (value) | 139 #define FX_GAMMA_INVERSE(value) (value) |
| 140 inline FX_ARGB ArgbGamma(FX_ARGB argb) | 140 inline FX_ARGB ArgbGamma(FX_ARGB argb) |
| 141 { | 141 { |
| 142 return argb; | 142 return argb; |
| 143 } | 143 } |
| 144 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) | 144 inline FX_ARGB ArgbGammaInverse(FX_ARGB argb) |
| 145 { | 145 { |
| 146 return argb; | 146 return argb; |
| 147 } | 147 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); | 723 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); |
| 724 | 724 |
| 725 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); | 725 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); |
| 726 | 726 |
| 727 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); | 727 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); |
| 728 | 728 |
| 729 void WritePSBinary(FX_LPCBYTE data, int len); | 729 void WritePSBinary(FX_LPCBYTE data, int len); |
| 730 }; | 730 }; |
| 731 | 731 |
| 732 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ | 732 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ |
| OLD | NEW |