| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 using CPDF_Type3CacheMap = | 84 using CPDF_Type3CacheMap = |
| 85 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; | 85 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; |
| 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 { | |
| 95 public: | |
| 96 CPDF_PageObjectList* m_pObjectList; | |
| 97 CFX_Matrix m_Matrix; | |
| 98 }; | |
| 99 | |
| 100 typedef CFX_ArrayTemplate<_PDF_RenderItem> CPDF_RenderLayer; | |
| 101 | 94 |
| 102 class IPDF_ObjectRenderer { | 95 class IPDF_ObjectRenderer { |
| 103 public: | 96 public: |
| 104 static IPDF_ObjectRenderer* Create(int type); | 97 static IPDF_ObjectRenderer* Create(int type); |
| 105 virtual ~IPDF_ObjectRenderer() {} | 98 virtual ~IPDF_ObjectRenderer() {} |
| 106 virtual FX_BOOL Start(CPDF_RenderStatus* pRenderStatus, | 99 virtual FX_BOOL Start(CPDF_RenderStatus* pRenderStatus, |
| 107 const CPDF_PageObject* pObj, | 100 const CPDF_PageObject* pObj, |
| 108 const CFX_Matrix* pObj2Device, | 101 const CFX_Matrix* pObj2Device, |
| 109 FX_BOOL bStdCS, | 102 FX_BOOL bStdCS, |
| 110 int blendType = FXDIB_BLEND_NORMAL) = 0; | 103 int blendType = FXDIB_BLEND_NORMAL) = 0; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 const uint8_t* m_RampB; | 607 const uint8_t* m_RampB; |
| 615 }; | 608 }; |
| 616 | 609 |
| 617 struct _CPDF_UniqueKeyGen { | 610 struct _CPDF_UniqueKeyGen { |
| 618 void Generate(int count, ...); | 611 void Generate(int count, ...); |
| 619 FX_CHAR m_Key[128]; | 612 FX_CHAR m_Key[128]; |
| 620 int m_KeyLen; | 613 int m_KeyLen; |
| 621 }; | 614 }; |
| 622 | 615 |
| 623 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 616 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |