| 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" | |
| 15 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_graphicstates.h" |
| 16 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" | 15 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" |
| 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
| 18 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" | 17 #include "core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h" |
| 18 #include "core/fxcrt/include/cfx_weak_ptr.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_GlyphBitmap; | 24 class CFX_GlyphBitmap; |
| 25 class CFX_ImageTransformer; | 25 class CFX_ImageTransformer; |
| 26 class CFX_PathData; | 26 class CFX_PathData; |
| 27 class CPDF_Color; | 27 class CPDF_Color; |
| 28 class CPDF_Dictionary; | 28 class CPDF_Dictionary; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); | 69 explicit CPDF_DocRenderData(CPDF_Document* pPDFDoc); |
| 70 ~CPDF_DocRenderData(); | 70 ~CPDF_DocRenderData(); |
| 71 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); | 71 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont); |
| 72 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); | 72 CPDF_TransferFunc* GetTransferFunc(CPDF_Object* pObj); |
| 73 void Clear(FX_BOOL bRelease = FALSE); | 73 void Clear(FX_BOOL bRelease = FALSE); |
| 74 void ReleaseCachedType3(CPDF_Type3Font* pFont); | 74 void ReleaseCachedType3(CPDF_Type3Font* pFont); |
| 75 void ReleaseTransferFunc(CPDF_Object* pObj); | 75 void ReleaseTransferFunc(CPDF_Object* pObj); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 using CPDF_Type3CacheMap = | 78 using CPDF_Type3CacheMap = |
| 79 std::map<CPDF_Font*, CPDF_CountedObject<CPDF_Type3Cache>*>; | 79 std::map<CPDF_Font*, CFX_WeakPtr<CPDF_Type3Cache>::Handle*>; |
| 80 using CPDF_TransferFuncMap = | 80 using CPDF_TransferFuncMap = |
| 81 std::map<CPDF_Object*, CPDF_CountedObject<CPDF_TransferFunc>*>; | 81 std::map<CPDF_Object*, CFX_WeakPtr<CPDF_TransferFunc>::Handle*>; |
| 82 | 82 |
| 83 CPDF_Document* m_pPDFDoc; | 83 CPDF_Document* m_pPDFDoc; |
| 84 CPDF_Type3CacheMap m_Type3FaceMap; | 84 CPDF_Type3CacheMap m_Type3FaceMap; |
| 85 CPDF_TransferFuncMap m_TransferFuncMap; | 85 CPDF_TransferFuncMap m_TransferFuncMap; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 class CPDF_RenderStatus { | 88 class CPDF_RenderStatus { |
| 89 public: | 89 public: |
| 90 CPDF_RenderStatus(); | 90 CPDF_RenderStatus(); |
| 91 ~CPDF_RenderStatus(); | 91 ~CPDF_RenderStatus(); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 const uint8_t* src_buf, | 587 const uint8_t* src_buf, |
| 588 int pixels, | 588 int pixels, |
| 589 int Bpp) const override; | 589 int Bpp) const override; |
| 590 | 590 |
| 591 const uint8_t* m_RampR; | 591 const uint8_t* m_RampR; |
| 592 const uint8_t* m_RampG; | 592 const uint8_t* m_RampG; |
| 593 const uint8_t* m_RampB; | 593 const uint8_t* m_RampB; |
| 594 }; | 594 }; |
| 595 | 595 |
| 596 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ | 596 #endif // CORE_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ |
| OLD | NEW |