summaryrefslogtreecommitdiff
path: root/core/fxge/dib/cfx_scanlinecompositor.h
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 /core/fxge/dib/cfx_scanlinecompositor.h
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 'core/fxge/dib/cfx_scanlinecompositor.h')
-rw-r--r--core/fxge/dib/cfx_scanlinecompositor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fxge/dib/cfx_scanlinecompositor.h b/core/fxge/dib/cfx_scanlinecompositor.h
index 1c373f036b..fc86299032 100644
--- a/core/fxge/dib/cfx_scanlinecompositor.h
+++ b/core/fxge/dib/cfx_scanlinecompositor.h
@@ -10,11 +10,11 @@
#include <memory>
#include "core/fxge/dib/cfx_dibbase.h"
+#include "core/fxge/fx_dib.h"
class CFX_ScanlineCompositor {
public:
CFX_ScanlineCompositor();
-
~CFX_ScanlineCompositor();
bool Init(FXDIB_Format dest_format,
@@ -22,7 +22,7 @@ class CFX_ScanlineCompositor {
int32_t width,
uint32_t* pSrcPalette,
uint32_t mask_color,
- int blend_type,
+ BlendMode blend_type,
bool bClip,
bool bRgbByteOrder,
int alpha_flag);
@@ -70,8 +70,8 @@ class CFX_ScanlineCompositor {
int m_MaskRed;
int m_MaskGreen;
int m_MaskBlue;
- int m_BlendType;
- bool m_bRgbByteOrder;
+ BlendMode m_BlendType = BlendMode::kNormal;
+ bool m_bRgbByteOrder = false;
};
#endif // CORE_FXGE_DIB_CFX_SCANLINECOMPOSITOR_H_