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_imageloader.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_imageloader.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_imageloader.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/core/fpdfapi/render/cpdf_imageloader.cpp b/core/fpdfapi/render/cpdf_imageloader.cpp index af441a5b00..bf540c610d 100644 --- a/core/fpdfapi/render/cpdf_imageloader.cpp +++ b/core/fpdfapi/render/cpdf_imageloader.cpp @@ -17,8 +17,6 @@ CPDF_ImageLoader::CPDF_ImageLoader() : m_MatteColor(0), m_bCached(false), - m_nDownsampleWidth(0), - m_nDownsampleHeight(0), m_pCache(nullptr), m_pImage(nullptr) {} @@ -29,18 +27,14 @@ bool CPDF_ImageLoader::Start(const CPDF_ImageObject* pImage, bool bStdCS, uint32_t GroupFamily, bool bLoadMask, - CPDF_RenderStatus* pRenderStatus, - int32_t nDownsampleWidth, - int32_t nDownsampleHeight) { - m_nDownsampleWidth = nDownsampleWidth; - m_nDownsampleHeight = nDownsampleHeight; + CPDF_RenderStatus* pRenderStatus) { m_pCache = pCache; m_pImage = const_cast<CPDF_ImageObject*>(pImage); bool ret; if (pCache) { - ret = pCache->StartGetCachedBitmap( - m_pImage->GetImage()->GetStream(), bStdCS, GroupFamily, bLoadMask, - pRenderStatus, m_nDownsampleWidth, m_nDownsampleHeight); + ret = + pCache->StartGetCachedBitmap(m_pImage->GetImage()->GetStream(), bStdCS, + GroupFamily, bLoadMask, pRenderStatus); } else { ret = m_pImage->GetImage()->StartLoadDIBSource( pRenderStatus->m_pFormResource, pRenderStatus->m_pPageResource, bStdCS, |