summaryrefslogtreecommitdiff
path: root/core/fxge/skia/fx_skia_device.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/skia/fx_skia_device.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/skia/fx_skia_device.h')
-rw-r--r--core/fxge/skia/fx_skia_device.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h
index 4baeacbce5..23c85145b1 100644
--- a/core/fxge/skia/fx_skia_device.h
+++ b/core/fxge/skia/fx_skia_device.h
@@ -62,17 +62,17 @@ class CFX_SkiaDeviceDriver final : public RenderDeviceDriverIface {
uint32_t fill_color,
uint32_t stroke_color,
int fill_mode,
- int blend_type) override;
+ BlendMode blend_type) override;
bool FillRectWithBlend(const FX_RECT& rect,
uint32_t fill_color,
- int blend_type) override;
+ BlendMode blend_type) override;
/** Draw a single pixel (device dependant) line */
bool DrawCosmeticLine(const CFX_PointF& ptMoveTo,
const CFX_PointF& ptLineTo,
uint32_t color,
- int blend_type) override;
+ BlendMode blend_type) override;
bool GetClipBox(FX_RECT* pRect) override;
@@ -88,14 +88,14 @@ class CFX_SkiaDeviceDriver final : public RenderDeviceDriverIface {
const FX_RECT* pSrcRect,
int dest_left,
int dest_top,
- int blend_type) override;
+ BlendMode blend_type) override;
#ifdef _SKIA_SUPPORT_
bool SetBitsWithMask(const RetainPtr<CFX_DIBBase>& pBitmap,
const RetainPtr<CFX_DIBBase>& pMask,
int dest_left,
int dest_top,
int bitmap_alpha,
- int blend_type) override;
+ BlendMode blend_type) override;
#endif
#ifdef _SKIA_SUPPORT_PATHS_
@@ -110,7 +110,7 @@ class CFX_SkiaDeviceDriver final : public RenderDeviceDriverIface {
int dest_height,
const FX_RECT* pClipRect,
uint32_t flags,
- int blend_type) override;
+ BlendMode blend_type) override;
bool StartDIBits(const RetainPtr<CFX_DIBBase>& pBitmap,
int bitmap_alpha,
@@ -118,7 +118,7 @@ class CFX_SkiaDeviceDriver final : public RenderDeviceDriverIface {
const CFX_Matrix* pMatrix,
uint32_t flags,
std::unique_ptr<CFX_ImageRenderer>* handle,
- int blend_type) override;
+ BlendMode blend_type) override;
bool ContinueDIBits(CFX_ImageRenderer* handle,
PauseIndicatorIface* pPause) override;
@@ -127,7 +127,7 @@ class CFX_SkiaDeviceDriver final : public RenderDeviceDriverIface {
const RetainPtr<CFX_DIBBase>& pMask,
int bitmap_alpha,
const CFX_Matrix* pMatrix,
- int blend_type);
+ BlendMode blend_type);
bool DrawDeviceText(int nChars,
const FXTEXT_CHARPOS* pCharPos,