diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-08 15:08:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-08 19:50:11 +0000 |
commit | 615bb96eb26570fd87004e2fa6f42eca0dbf79cd (patch) | |
tree | a2e2ece53fcaa41c5670ac7e7afd706373f2078f /core/fpdfapi/render/cpdf_imagecacheentry.cpp | |
parent | 852fb12d554abbbda65bbbf3720117a0aad5a9c9 (diff) | |
download | pdfium-615bb96eb26570fd87004e2fa6f42eca0dbf79cd.tar.xz |
Remove default params in CFX_DIBSource
Change-Id: I9306afed2747e3b0054adeea1d39916cac47f5c5
Reviewed-on: https://pdfium-review.googlesource.com/5091
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_imagecacheentry.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_imagecacheentry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_imagecacheentry.cpp b/core/fpdfapi/render/cpdf_imagecacheentry.cpp index 751b3eb4b4..392eaba914 100644 --- a/core/fpdfapi/render/cpdf_imagecacheentry.cpp +++ b/core/fpdfapi/render/cpdf_imagecacheentry.cpp @@ -34,7 +34,7 @@ CPDF_ImageCacheEntry::~CPDF_ImageCacheEntry() {} void CPDF_ImageCacheEntry::Reset(const CFX_RetainPtr<CFX_DIBitmap>& pBitmap) { m_pCachedBitmap.Reset(); if (pBitmap) - m_pCachedBitmap = pBitmap->Clone(); + m_pCachedBitmap = pBitmap->Clone(nullptr); CalcSize(); } @@ -94,13 +94,13 @@ void CPDF_ImageCacheEntry::ContinueGetCachedBitmap() { m_dwTimeCount = pPageRenderCache->GetTimeCount(); if (m_pCurBitmap->GetPitch() * m_pCurBitmap->GetHeight() < FPDF_HUGE_IMAGE_SIZE) { - m_pCachedBitmap = m_pCurBitmap->Clone(); + m_pCachedBitmap = m_pCurBitmap->Clone(nullptr); m_pCurBitmap.Reset(); } else { m_pCachedBitmap = m_pCurBitmap; } if (m_pCurMask) { - m_pCachedMask = m_pCurMask->Clone(); + m_pCachedMask = m_pCurMask->Clone(nullptr); m_pCurMask.Reset(); } m_pCurBitmap = m_pCachedBitmap; |