summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 15:21:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 15:21:41 +0000
commitfaf1578859f24a0e79e995c534eae1abea0e63bb (patch)
tree2b15ef550218422bda8a9b165b7ba2b6eb2b7021
parentf82e2d7735d47d4139fe98a26cd955debf113e0c (diff)
downloadpdfium-faf1578859f24a0e79e995c534eae1abea0e63bb.tar.xz
Remove m_bPrint from CXFA_ImageRenderer
Remove the m_bPrint value from CXFA_ImageRenderer which is always false. Change-Id: Id4b1ea3328d1a7627526a503a8cd94a31e3c6091 Reviewed-on: https://pdfium-review.googlesource.com/23054 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--xfa/fxfa/cxfa_imagerenderer.cpp5
-rw-r--r--xfa/fxfa/cxfa_imagerenderer.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_imagerenderer.cpp b/xfa/fxfa/cxfa_imagerenderer.cpp
index 4027a948f3..e5b220b497 100644
--- a/xfa/fxfa/cxfa_imagerenderer.cpp
+++ b/xfa/fxfa/cxfa_imagerenderer.cpp
@@ -40,9 +40,6 @@ bool CXFA_ImageRenderer::Start() {
int dest_height = image_rect.Height();
if ((fabs(m_ImageMatrix.b) >= 0.5f || m_ImageMatrix.a == 0) ||
(fabs(m_ImageMatrix.c) >= 0.5f || m_ImageMatrix.d == 0)) {
- if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE))
- return false;
-
RetainPtr<CFX_DIBSource> pDib = m_pDIBSource;
if (m_pDIBSource->HasAlpha() &&
!(m_pDevice->GetRenderCaps() & FXRC_ALPHA_IMAGE) &&
@@ -81,8 +78,6 @@ bool CXFA_ImageRenderer::Start() {
return false;
}
}
- if (m_bPrint && !(m_pDevice->GetRenderCaps() & FXRC_BLEND_MODE))
- return true;
FX_RECT clip_box = m_pDevice->GetClipBox();
FX_RECT dest_rect = clip_box;
diff --git a/xfa/fxfa/cxfa_imagerenderer.h b/xfa/fxfa/cxfa_imagerenderer.h
index e35a5f0a09..cdc9464f92 100644
--- a/xfa/fxfa/cxfa_imagerenderer.h
+++ b/xfa/fxfa/cxfa_imagerenderer.h
@@ -46,7 +46,6 @@ class CXFA_ImageRenderer {
std::unique_ptr<CFX_ImageTransformer> m_pTransformer;
std::unique_ptr<CFX_ImageRenderer> m_DeviceHandle;
int32_t m_BlendType = FXDIB_BLEND_NORMAL;
- bool m_bPrint = false;
};
#endif // XFA_FXFA_CXFA_IMAGERENDERER_H_