Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2371)

Unified Diff: core/fpdfapi/render/cpdf_pagerendercache.h

Issue 2550543002: Kill off fpdf_render_cache.cpp (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/render/cpdf_imageloader.cpp ('k') | core/fpdfapi/render/cpdf_pagerendercache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/render/cpdf_pagerendercache.h
diff --git a/core/fpdfapi/render/cpdf_pagerendercache.h b/core/fpdfapi/render/cpdf_pagerendercache.h
index 0877e6cb5882d8f503eb98ec4def9a7396d2991a..6c9ed76911520fa6baa3cc403ef3a97ec6b9be4a 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;
« no previous file with comments | « core/fpdfapi/render/cpdf_imageloader.cpp ('k') | core/fpdfapi/render/cpdf_pagerendercache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698