summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp')
-rw-r--r--chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp b/chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp
index 5bf308a775d..b7722f184bc 100644
--- a/chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp
+++ b/chromium/third_party/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp
@@ -84,7 +84,7 @@ void CPDF_DeviceBuffer::OutputToDevice() {
auto pBuffer = pdfium::MakeRetain<CFX_DIBitmap>();
m_pDevice->CreateCompatibleBitmap(pBuffer, m_pBitmap->GetWidth(),
m_pBitmap->GetHeight());
- m_pContext->GetBackground(m_pDevice, m_pObject, nullptr, m_Matrix);
+ m_pContext->GetBackground(pBuffer, m_pObject, nullptr, m_Matrix);
pBuffer->CompositeBitmap(0, 0, pBuffer->GetWidth(), pBuffer->GetHeight(),
m_pBitmap, 0, 0, BlendMode::kNormal, nullptr, false);
m_pDevice->StretchDIBits(pBuffer, m_Rect.left, m_Rect.top, m_Rect.Width(),