summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fpdfapi/render/cpdf_dibsource.cpp5
-rw-r--r--core/fpdfapi/render/cpdf_dibsource.h6
-rw-r--r--fpdfsdk/fpdf_editimg.cpp2
3 files changed, 7 insertions, 6 deletions
diff --git a/core/fpdfapi/render/cpdf_dibsource.cpp b/core/fpdfapi/render/cpdf_dibsource.cpp
index fec439a689..0c69852354 100644
--- a/core/fpdfapi/render/cpdf_dibsource.cpp
+++ b/core/fpdfapi/render/cpdf_dibsource.cpp
@@ -705,8 +705,9 @@ bool CPDF_DIBSource::IsJBigImage() const {
CPDF_DIBSource::LoadState CPDF_DIBSource::StartLoadMaskDIB() {
m_pMask = pdfium::MakeRetain<CPDF_DIBSource>();
- LoadState ret = m_pMask->StartLoadDIBSource(
- m_pDocument.Get(), m_pMaskStream.Get(), false, nullptr, nullptr, true);
+ LoadState ret =
+ m_pMask->StartLoadDIBSource(m_pDocument.Get(), m_pMaskStream.Get(), false,
+ nullptr, nullptr, true, 0, false);
if (ret == LoadState::kContinue) {
if (m_Status == LoadState::kFail)
m_Status = LoadState::kContinue;
diff --git a/core/fpdfapi/render/cpdf_dibsource.h b/core/fpdfapi/render/cpdf_dibsource.h
index fc390c2f6f..597390cd18 100644
--- a/core/fpdfapi/render/cpdf_dibsource.h
+++ b/core/fpdfapi/render/cpdf_dibsource.h
@@ -68,9 +68,9 @@ class CPDF_DIBSource : public CFX_DIBSource {
bool bHasMask,
const CPDF_Dictionary* pFormResources,
CPDF_Dictionary* pPageResources,
- bool bStdCS = false,
- uint32_t GroupFamily = 0,
- bool bLoadMask = false);
+ bool bStdCS,
+ uint32_t GroupFamily,
+ bool bLoadMask);
LoadState ContinueLoadDIBSource(PauseIndicatorIface* pPause);
RetainPtr<CPDF_DIBSource> DetachMask();
diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp
index 7aa93e98ec..8235a8c25f 100644
--- a/fpdfsdk/fpdf_editimg.cpp
+++ b/fpdfsdk/fpdf_editimg.cpp
@@ -316,7 +316,7 @@ FPDFImageObj_GetImageMetadata(FPDF_PAGEOBJECT image_object,
auto pSource = pdfium::MakeRetain<CPDF_DIBSource>();
CPDF_DIBSource::LoadState ret = pSource->StartLoadDIBSource(
pPage->GetDocument(), pImg->GetStream(), false, nullptr,
- pPage->m_pPageResources.Get());
+ pPage->m_pPageResources.Get(), false, 0, false);
if (ret == CPDF_DIBSource::LoadState::kFail)
return true;