diff options
author | Lei Zhang <thestig@chromium.org> | 2018-01-12 21:21:51 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-12 21:21:51 +0000 |
commit | 14e77443e92ce3fdf1cebe85f8f5c8fe705a1558 (patch) | |
tree | 6663d55d22cc13f72d26941f2dfb4916be00a537 /core/fxge/cfx_renderdevice.cpp | |
parent | 9baf31f8c38e1c5266609e184cc07e369b744760 (diff) | |
download | pdfium-14e77443e92ce3fdf1cebe85f8f5c8fe705a1558.tar.xz |
Move some RetainPtr getters/setters out of headers.
RetainPtr operations are not trivial.
Change-Id: Ic106ada69d1c023a8132a2a59db17d550fd81fa0
Reviewed-on: https://pdfium-review.googlesource.com/22911
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_renderdevice.cpp')
-rw-r--r-- | core/fxge/cfx_renderdevice.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/fxge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp index 63bf1d9ebd..919a7a98a7 100644 --- a/core/fxge/cfx_renderdevice.cpp +++ b/core/fxge/cfx_renderdevice.cpp @@ -429,6 +429,14 @@ CFX_Matrix CFX_RenderDevice::GetCTM() const { return m_pDeviceDriver->GetCTM(); } +RetainPtr<CFX_DIBitmap> CFX_RenderDevice::GetBitmap() const { + return m_pBitmap; +} + +void CFX_RenderDevice::SetBitmap(const RetainPtr<CFX_DIBitmap>& pBitmap) { + m_pBitmap = pBitmap; +} + bool CFX_RenderDevice::CreateCompatibleBitmap( const RetainPtr<CFX_DIBitmap>& pDIB, int width, |