| 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_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" |
| 15 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" | 15 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" |
| 16 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" | 16 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" |
| 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
| 18 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 18 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
| 19 #include "core/fxge/include/cfx_fxgedevice.h" | 19 #include "core/fxge/include/cfx_fxgedevice.h" |
| 20 #include "core/fxge/include/cfx_renderdevice.h" | 20 #include "core/fxge/include/cfx_renderdevice.h" |
| 21 | 21 |
| 22 class CCodec_Jbig2Context; | 22 class CCodec_Jbig2Context; |
| 23 class CCodec_ScanlineDecoder; | 23 class CCodec_ScanlineDecoder; |
| 24 class CFX_FontCache; | |
| 25 class CFX_GlyphBitmap; | 24 class CFX_GlyphBitmap; |
| 26 class CFX_ImageTransformer; | 25 class CFX_ImageTransformer; |
| 27 class CFX_PathData; | 26 class CFX_PathData; |
| 28 class CPDF_Color; | 27 class CPDF_Color; |
| 29 class CPDF_Dictionary; | 28 class CPDF_Dictionary; |
| 30 class CPDF_Document; | 29 class CPDF_Document; |
| 31 class CPDF_Font; | 30 class CPDF_Font; |
| 32 class CPDF_FormObject; | 31 class CPDF_FormObject; |
| 33 class CPDF_ImageCacheEntry; | 32 class CPDF_ImageCacheEntry; |
| 34 class CPDF_ImageLoaderHandle; | 33 class CPDF_ImageLoaderHandle; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 64 FX_BOOL m_bIdentity; | 63 FX_BOOL m_bIdentity; |
| 65 uint8_t m_Samples[256 * 3]; | 64 uint8_t m_Samples[256 * 3]; |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 class CPDF_DocRenderData { | 67 class CPDF_DocRenderData { |
| 69 public: | 68 public: |
| 70 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); | 69 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); |
| 71 ~CPDF_DocRenderData(); | 70 ~CPDF_DocRenderData(); |
| 72 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); | 71 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); |
| 73 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); | 72 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); |
| 74 CFX_FontCache* GetFontCache() { return m_pFontCache; } | |
| 75 void Clear(FX_BOOL bRelease = FALSE); | 73 void Clear(FX_BOOL bRelease = FALSE); |
| 76 void ReleaseCachedType3(CPDF_Type3Font* pFont); | 74 void ReleaseCachedType3(CPDF_Type3Font* pFont); |
| 77 void ReleaseTransferFunc(CPDF_Object* pObj); | 75 void ReleaseTransferFunc(CPDF_Object* pObj); |
| 78 | 76 |
| 79 private: | 77 private: |
| 80 using CPDF_Type3CacheMap = | 78 using CPDF_Type3CacheMap = |
| 81 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; | 79 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; |
| 82 using CPDF_TransferFuncMap = | 80 using CPDF_TransferFuncMap = |
| 83 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; | 81 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; |
| 84 | 82 |
| 85 CPDF_Document* m_pPDFDoc; | 83 CPDF_Document* m_pPDFDoc; |
| 86 CFX_FontCache* m_pFontCache; | |
| 87 CPDF_Type3CacheMap m_Type3FaceMap; | 84 CPDF_Type3CacheMap m_Type3FaceMap; |
| 88 CPDF_TransferFuncMap m_TransferFuncMap; | 85 CPDF_TransferFuncMap m_TransferFuncMap; |
| 89 }; | 86 }; |
| 90 | 87 |
| 91 class CPDF_RenderStatus { | 88 class CPDF_RenderStatus { |
| 92 public: | 89 public: |
| 93 CPDF_RenderStatus(); | 90 CPDF_RenderStatus(); |
| 94 ~CPDF_RenderStatus(); | 91 ~CPDF_RenderStatus(); |
| 95 | 92 |
| 96 FX_BOOL Initialize(class CPDF_RenderContext* pContext, | 93 FX_BOOL Initialize(class CPDF_RenderContext* pContext, |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 const uint8_t* src_buf, | 587 const uint8_t* src_buf, |
| 591 int pixels, | 588 int pixels, |
| 592 int Bpp) const override; | 589 int Bpp) const override; |
| 593 | 590 |
| 594 const uint8_t* m_RampR; | 591 const uint8_t* m_RampR; |
| 595 const uint8_t* m_RampG; | 592 const uint8_t* m_RampG; |
| 596 const uint8_t* m_RampB; | 593 const uint8_t* m_RampB; |
| 597 }; | 594 }; |
| 598 | 595 |
| 599 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 596 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |