diff options
author | npm <npm@chromium.org> | 2016-12-01 15:37:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-01 15:37:42 -0800 |
commit | d7ecb5f272de6cdd88ecef4c7b4d0dbee4355610 (patch) | |
tree | ad01d3ad2236b4671f8a99f699e25b7d26f84531 /core/fpdfapi/render/render_int.h | |
parent | f78bf1a54a4afb6486869b4bc5850283225d7055 (diff) | |
download | pdfium-d7ecb5f272de6cdd88ecef4c7b4d0dbee4355610.tar.xz |
Kill off fpdf_render_cache.cppchromium/2939
Review-Url: https://codereview.chromium.org/2550543002
Diffstat (limited to 'core/fpdfapi/render/render_int.h')
-rw-r--r-- | core/fpdfapi/render/render_int.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/core/fpdfapi/render/render_int.h b/core/fpdfapi/render/render_int.h index dfad6b14c6..ca827368bc 100644 --- a/core/fpdfapi/render/render_int.h +++ b/core/fpdfapi/render/render_int.h @@ -49,56 +49,6 @@ class CPDF_Type3Glyphs; class CPDF_Type3Char; class CPDF_Type3Font; -class CPDF_ImageCacheEntry { - public: - CPDF_ImageCacheEntry(CPDF_Document* pDoc, CPDF_Stream* pStream); - ~CPDF_ImageCacheEntry(); - - void Reset(const CFX_DIBitmap* pBitmap); - bool GetCachedBitmap(CFX_DIBSource*& pBitmap, - CFX_DIBSource*& pMask, - uint32_t& MatteColor, - CPDF_Dictionary* pPageResources, - bool bStdCS = false, - uint32_t GroupFamily = 0, - bool bLoadMask = false, - CPDF_RenderStatus* pRenderStatus = nullptr, - int32_t downsampleWidth = 0, - int32_t downsampleHeight = 0); - uint32_t EstimateSize() const { return m_dwCacheSize; } - uint32_t GetTimeCount() const { return m_dwTimeCount; } - CPDF_Stream* GetStream() const { return m_pStream; } - void SetTimeCount(uint32_t dwTimeCount) { m_dwTimeCount = dwTimeCount; } - int m_dwTimeCount; - - public: - int StartGetCachedBitmap(CPDF_Dictionary* pFormResources, - CPDF_Dictionary* pPageResources, - bool bStdCS = false, - uint32_t GroupFamily = 0, - bool bLoadMask = false, - CPDF_RenderStatus* pRenderStatus = nullptr, - int32_t downsampleWidth = 0, - int32_t downsampleHeight = 0); - int Continue(IFX_Pause* pPause); - CFX_DIBSource* DetachBitmap(); - CFX_DIBSource* DetachMask(); - CFX_DIBSource* m_pCurBitmap; - CFX_DIBSource* m_pCurMask; - uint32_t m_MatteColor; - CPDF_RenderStatus* m_pRenderStatus; - - protected: - void ContinueGetCachedBitmap(); - - CPDF_Document* m_pDocument; - CPDF_Stream* m_pStream; - std::unique_ptr<CFX_DIBSource> m_pCachedBitmap; - std::unique_ptr<CFX_DIBSource> m_pCachedMask; - uint32_t m_dwCacheSize; - void CalcSize(); -}; - typedef struct { FX_FLOAT m_DecodeMin; FX_FLOAT m_DecodeStep; |