summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-25 19:02:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-25 19:02:50 +0000
commit0c327657fb8c23934c5beae520e7a97a48e2eef6 (patch)
tree75c5749124f32c464d29149e125e47325f0cbd2d /xfa
parent94f45b29897f801151ecd085fa083f84558065ee (diff)
downloadpdfium-0c327657fb8c23934c5beae520e7a97a48e2eef6.tar.xz
Change FXDIB_BLEND_FOO typedefs to an enum class.
BUG=pdfium:1085 Change-Id: Ieb43d4588e1d689e327e428dcbbf7adba45ce178 Reviewed-on: https://pdfium-review.googlesource.com/c/44545 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/cxfa_imagerenderer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/cxfa_imagerenderer.cpp b/xfa/fxfa/cxfa_imagerenderer.cpp
index 5f90b3cff6..9cfccb9c7a 100644
--- a/xfa/fxfa/cxfa_imagerenderer.cpp
+++ b/xfa/fxfa/cxfa_imagerenderer.cpp
@@ -22,7 +22,7 @@ CXFA_ImageRenderer::~CXFA_ImageRenderer() {}
bool CXFA_ImageRenderer::Start() {
if (m_pDevice->StartDIBitsWithBlend(m_pDIBBase, 255, 0, &m_ImageMatrix,
FXDIB_INTERPOL, &m_DeviceHandle,
- FXDIB_BLEND_NORMAL)) {
+ BlendMode::kNormal)) {
if (m_DeviceHandle) {
m_Status = 3;
return true;
@@ -62,7 +62,7 @@ bool CXFA_ImageRenderer::Start() {
if (m_pDIBBase->IsOpaqueImage()) {
if (m_pDevice->StretchDIBitsWithFlagsAndBlend(
m_pDIBBase, dest_left, dest_top, dest_width, dest_height,
- FXDIB_INTERPOL, FXDIB_BLEND_NORMAL)) {
+ FXDIB_INTERPOL, BlendMode::kNormal)) {
return false;
}
}
@@ -103,7 +103,7 @@ bool CXFA_ImageRenderer::Continue() {
} else {
m_pDevice->SetDIBitsWithBlend(pBitmap, m_pTransformer->result().left,
m_pTransformer->result().top,
- FXDIB_BLEND_NORMAL);
+ BlendMode::kNormal);
}
return false;
}
@@ -134,7 +134,7 @@ void CXFA_ImageRenderer::CompositeDIBitmap(
if (pDIBitmap->IsAlphaMask())
return;
- m_pDevice->SetDIBitsWithBlend(pDIBitmap, left, top, FXDIB_BLEND_NORMAL);
+ m_pDevice->SetDIBitsWithBlend(pDIBitmap, left, top, BlendMode::kNormal);
return;
}
if (!pDIBitmap->HasAlpha() ||