From faf1578859f24a0e79e995c534eae1abea0e63bb Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 17 Jan 2018 15:21:41 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fxfa/cxfa_imagerenderer.cpp | 5 ----- xfa/fxfa/cxfa_imagerenderer.h | 1 - 2 files changed, 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 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 m_pTransformer; std::unique_ptr m_DeviceHandle; int32_t m_BlendType = FXDIB_BLEND_NORMAL; - bool m_bPrint = false; }; #endif // XFA_FXFA_CXFA_IMAGERENDERER_H_ -- cgit v1.2.3