diff options
Diffstat (limited to 'core/fpdfapi/render/cpdf_devicebuffer.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_devicebuffer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_devicebuffer.cpp b/core/fpdfapi/render/cpdf_devicebuffer.cpp index be87128a49..8125ea5df1 100644 --- a/core/fpdfapi/render/cpdf_devicebuffer.cpp +++ b/core/fpdfapi/render/cpdf_devicebuffer.cpp @@ -14,8 +14,7 @@ #include "core/fxge/fx_dib.h" #include "third_party/base/ptr_util.h" -CPDF_DeviceBuffer::CPDF_DeviceBuffer() - : m_pDevice(nullptr), m_pContext(nullptr), m_pObject(nullptr) {} +CPDF_DeviceBuffer::CPDF_DeviceBuffer() {} CPDF_DeviceBuffer::~CPDF_DeviceBuffer() {} @@ -68,7 +67,7 @@ void CPDF_DeviceBuffer::OutputToDevice() { auto pBuffer = pdfium::MakeRetain<CFX_DIBitmap>(); m_pDevice->CreateCompatibleBitmap(pBuffer, m_pBitmap->GetWidth(), m_pBitmap->GetHeight()); - m_pContext->GetBackground(pBuffer, m_pObject, nullptr, &m_Matrix); + m_pContext->GetBackground(pBuffer, m_pObject.Get(), nullptr, &m_Matrix); pBuffer->CompositeBitmap(0, 0, pBuffer->GetWidth(), pBuffer->GetHeight(), m_pBitmap, 0, 0); m_pDevice->StretchDIBits(pBuffer, m_Rect.left, m_Rect.top, m_Rect.Width(), |