diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-12 18:54:51 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-12 18:54:51 +0000 |
commit | ec4d28f844e72dbe47b9c6d464abc04d947b4bf5 (patch) | |
tree | a3ee3823fedf9aa3ee87a4e44f15a250d7380ca4 /core/fpdfapi/render | |
parent | 6aa2190f70a80b70af7bcfe198041756ed8c803e (diff) | |
download | pdfium-ec4d28f844e72dbe47b9c6d464abc04d947b4bf5.tar.xz |
Rename 'ori' to 'backdrop' in rendering code.
Change-Id: I6fa3fd93638bc3aeaaef854676fe31476888433b
Reviewed-on: https://pdfium-review.googlesource.com/37671
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/render')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp index 433d32b886..23eeefd0ed 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.cpp +++ b/core/fpdfapi/render/cpdf_renderstatus.cpp @@ -1551,15 +1551,15 @@ bool CPDF_RenderStatus::ProcessTransparency(CPDF_PageObject* pPageObj, int width = rect.Width(); int height = rect.Height(); CFX_DefaultRenderDevice bitmap_device; - RetainPtr<CFX_DIBitmap> oriDevice; + RetainPtr<CFX_DIBitmap> backdrop; if (!transparency.IsIsolated() && (m_pDevice->GetRenderCaps() & FXRC_GET_BITS)) { - oriDevice = pdfium::MakeRetain<CFX_DIBitmap>(); - if (!m_pDevice->CreateCompatibleBitmap(oriDevice, width, height)) + backdrop = pdfium::MakeRetain<CFX_DIBitmap>(); + if (!m_pDevice->CreateCompatibleBitmap(backdrop, width, height)) return true; - m_pDevice->GetDIBits(oriDevice, rect.left, rect.top); + m_pDevice->GetDIBits(backdrop, rect.left, rect.top); } - if (!bitmap_device.Create(width, height, FXDIB_Argb, oriDevice)) + if (!bitmap_device.Create(width, height, FXDIB_Argb, backdrop)) return true; RetainPtr<CFX_DIBitmap> bitmap = bitmap_device.GetBitmap(); |