| 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_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 using CPDF_TransferFuncMap = | 86 using CPDF_TransferFuncMap = |
| 87 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; | 87 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; |
| 88 | 88 |
| 89 CPDF_Document* m_pPDFDoc; | 89 CPDF_Document* m_pPDFDoc; |
| 90 CFX_FontCache* m_pFontCache; | 90 CFX_FontCache* m_pFontCache; |
| 91 CPDF_Type3CacheMap m_Type3FaceMap; | 91 CPDF_Type3CacheMap m_Type3FaceMap; |
| 92 CPDF_TransferFuncMap m_TransferFuncMap; | 92 CPDF_TransferFuncMap m_TransferFuncMap; |
| 93 }; | 93 }; |
| 94 struct _PDF_RenderItem { | 94 struct _PDF_RenderItem { |
| 95 public: | 95 public: |
| 96 CPDF_PageObjects* m_pObjectList; | 96 CPDF_PageObjectList* m_pObjectList; |
| 97 CFX_Matrix m_Matrix; | 97 CFX_Matrix m_Matrix; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 typedef CFX_ArrayTemplate<_PDF_RenderItem> CPDF_RenderLayer; | 100 typedef CFX_ArrayTemplate<_PDF_RenderItem> CPDF_RenderLayer; |
| 101 | 101 |
| 102 class IPDF_ObjectRenderer { | 102 class IPDF_ObjectRenderer { |
| 103 public: | 103 public: |
| 104 static IPDF_ObjectRenderer* Create(int type); | 104 static IPDF_ObjectRenderer* Create(int type); |
| 105 virtual ~IPDF_ObjectRenderer() {} | 105 virtual ~IPDF_ObjectRenderer() {} |
| 106 virtual FX_BOOL Start(CPDF_RenderStatus* pRenderStatus, | 106 virtual FX_BOOL Start(CPDF_RenderStatus* pRenderStatus, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 124 const CPDF_GraphicStates* pInitialStates, | 124 const CPDF_GraphicStates* pInitialStates, |
| 125 const CPDF_RenderOptions* pOptions, | 125 const CPDF_RenderOptions* pOptions, |
| 126 int transparency, | 126 int transparency, |
| 127 FX_BOOL bDropObjects, | 127 FX_BOOL bDropObjects, |
| 128 CPDF_Dictionary* pFormResource = NULL, | 128 CPDF_Dictionary* pFormResource = NULL, |
| 129 FX_BOOL bStdCS = FALSE, | 129 FX_BOOL bStdCS = FALSE, |
| 130 CPDF_Type3Char* pType3Char = NULL, | 130 CPDF_Type3Char* pType3Char = NULL, |
| 131 FX_ARGB fill_color = 0, | 131 FX_ARGB fill_color = 0, |
| 132 FX_DWORD GroupFamily = 0, | 132 FX_DWORD GroupFamily = 0, |
| 133 FX_BOOL bLoadMask = FALSE); | 133 FX_BOOL bLoadMask = FALSE); |
| 134 void RenderObjectList(const CPDF_PageObjects* pObjs, | 134 void RenderObjectList(const CPDF_PageObjectList* pObjs, |
| 135 const CFX_Matrix* pObj2Device); | 135 const CFX_Matrix* pObj2Device); |
| 136 void RenderSingleObject(const CPDF_PageObject* pObj, | 136 void RenderSingleObject(const CPDF_PageObject* pObj, |
| 137 const CFX_Matrix* pObj2Device); | 137 const CFX_Matrix* pObj2Device); |
| 138 FX_BOOL ContinueSingleObject(const CPDF_PageObject* pObj, | 138 FX_BOOL ContinueSingleObject(const CPDF_PageObject* pObj, |
| 139 const CFX_Matrix* pObj2Device, | 139 const CFX_Matrix* pObj2Device, |
| 140 IFX_Pause* pPause); | 140 IFX_Pause* pPause); |
| 141 CPDF_RenderContext* GetContext() { return m_pContext; } | 141 CPDF_RenderContext* GetContext() { return m_pContext; } |
| 142 | 142 |
| 143 CPDF_RenderOptions m_Options; | 143 CPDF_RenderOptions m_Options; |
| 144 CPDF_Dictionary* m_pFormResource; | 144 CPDF_Dictionary* m_pFormResource; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 const uint8_t* m_RampB; | 614 const uint8_t* m_RampB; |
| 615 }; | 615 }; |
| 616 | 616 |
| 617 struct _CPDF_UniqueKeyGen { | 617 struct _CPDF_UniqueKeyGen { |
| 618 void Generate(int count, ...); | 618 void Generate(int count, ...); |
| 619 FX_CHAR m_Key[128]; | 619 FX_CHAR m_Key[128]; |
| 620 int m_KeyLen; | 620 int m_KeyLen; |
| 621 }; | 621 }; |
| 622 | 622 |
| 623 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 623 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |