summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_pagerendercache.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-12-01 15:37:42 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-01 15:37:42 -0800
commitd7ecb5f272de6cdd88ecef4c7b4d0dbee4355610 (patch)
treead01d3ad2236b4671f8a99f699e25b7d26f84531 /core/fpdfapi/render/cpdf_pagerendercache.h
parentf78bf1a54a4afb6486869b4bc5850283225d7055 (diff)
downloadpdfium-d7ecb5f272de6cdd88ecef4c7b4d0dbee4355610.tar.xz
Kill off fpdf_render_cache.cppchromium/2939
Review-Url: https://codereview.chromium.org/2550543002
Diffstat (limited to 'core/fpdfapi/render/cpdf_pagerendercache.h')
-rw-r--r--core/fpdfapi/render/cpdf_pagerendercache.h30
1 files changed, 9 insertions, 21 deletions
diff --git a/core/fpdfapi/render/cpdf_pagerendercache.h b/core/fpdfapi/render/cpdf_pagerendercache.h
index 0877e6cb58..6c9ed76911 100644
--- a/core/fpdfapi/render/cpdf_pagerendercache.h
+++ b/core/fpdfapi/render/cpdf_pagerendercache.h
@@ -24,40 +24,28 @@ class CPDF_PageRenderCache {
explicit CPDF_PageRenderCache(CPDF_Page* pPage);
~CPDF_PageRenderCache();
- uint32_t EstimateSize();
void CacheOptimization(int32_t dwLimitCacheSize);
uint32_t GetTimeCount() const { return m_nTimeCount; }
- void SetTimeCount(uint32_t dwTimeCount) { m_nTimeCount = dwTimeCount; }
-
- void GetCachedBitmap(CPDF_Stream* pStream,
- CFX_DIBSource*& pBitmap,
- CFX_DIBSource*& pMask,
- uint32_t& MatteColor,
- bool bStdCS = false,
- uint32_t GroupFamily = 0,
- bool bLoadMask = false,
- CPDF_RenderStatus* pRenderStatus = nullptr,
- int32_t downsampleWidth = 0,
- int32_t downsampleHeight = 0);
void ResetBitmap(CPDF_Stream* pStream, const CFX_DIBitmap* pBitmap);
- void ClearImageCacheEntry(CPDF_Stream* pStream);
CPDF_Page* GetPage() const { return m_pPage; }
CPDF_ImageCacheEntry* GetCurImageCacheEntry() const {
return m_pCurImageCacheEntry;
}
bool StartGetCachedBitmap(CPDF_Stream* pStream,
- bool bStdCS = false,
- uint32_t GroupFamily = 0,
- bool bLoadMask = false,
- CPDF_RenderStatus* pRenderStatus = nullptr,
- int32_t downsampleWidth = 0,
- int32_t downsampleHeight = 0);
+ bool bStdCS,
+ uint32_t GroupFamily,
+ bool bLoadMask,
+ CPDF_RenderStatus* pRenderStatus,
+ int32_t downsampleWidth,
+ int32_t downsampleHeight);
bool Continue(IFX_Pause* pPause);
- protected:
+ private:
+ void ClearImageCacheEntry(CPDF_Stream* pStream);
+
CPDF_Page* const m_pPage;
CPDF_ImageCacheEntry* m_pCurImageCacheEntry;
std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache;