diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-18 17:01:34 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-19 00:13:45 +0000 |
commit | 6d69108d84b144716be15e73b719dc69cb72177c (patch) | |
tree | 2f61324149892b5c5a7f11336b509f7860ff1615 /core/fpdfapi/render/cpdf_pagerendercache.cpp | |
parent | e30f07a3278669c6d62c4e857c3d5402cb7a04d3 (diff) | |
download | pdfium-6d69108d84b144716be15e73b719dc69cb72177c.tar.xz |
Remove image dimension params that are never used.
Change-Id: Ib219e23efdcb128772c4c3138531363af53780a1
Reviewed-on: https://pdfium-review.googlesource.com/5652
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_pagerendercache.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_pagerendercache.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/fpdfapi/render/cpdf_pagerendercache.cpp b/core/fpdfapi/render/cpdf_pagerendercache.cpp index 2fa7220409..e427627a9b 100644 --- a/core/fpdfapi/render/cpdf_pagerendercache.cpp +++ b/core/fpdfapi/render/cpdf_pagerendercache.cpp @@ -19,7 +19,8 @@ struct CACHEINFO { extern "C" { static int compare(const void* data1, const void* data2) { - return ((CACHEINFO*)data1)->time - ((CACHEINFO*)data2)->time; + return reinterpret_cast<const CACHEINFO*>(data1)->time - + reinterpret_cast<const CACHEINFO*>(data2)->time; } } // extern "C" @@ -84,9 +85,7 @@ bool CPDF_PageRenderCache::StartGetCachedBitmap( bool bStdCS, uint32_t GroupFamily, bool bLoadMask, - CPDF_RenderStatus* pRenderStatus, - int32_t downsampleWidth, - int32_t downsampleHeight) { + CPDF_RenderStatus* pRenderStatus) { const auto it = m_ImageCache.find(pStream); m_bCurFindCache = it != m_ImageCache.end(); if (m_bCurFindCache) { @@ -97,7 +96,7 @@ bool CPDF_PageRenderCache::StartGetCachedBitmap( } int ret = m_pCurImageCacheEntry->StartGetCachedBitmap( pRenderStatus->m_pFormResource, m_pPage->m_pPageResources, bStdCS, - GroupFamily, bLoadMask, pRenderStatus, downsampleWidth, downsampleHeight); + GroupFamily, bLoadMask, pRenderStatus); if (ret == 2) return true; |