From 048d7f7c1e0c6c42679a5646ae9db5b7d98ed755 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 16 Aug 2018 16:20:08 +0000 Subject: Remove more optional args in core/ Change-Id: I6a2bd03e00ad4e3d57f6931c0c6cf4ae0c760afb Reviewed-on: https://pdfium-review.googlesource.com/40290 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxge/dib/cfx_dibitmap.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'core/fxge/dib/cfx_dibitmap.h') diff --git a/core/fxge/dib/cfx_dibitmap.h b/core/fxge/dib/cfx_dibitmap.h index 008a549bac..d9afee6800 100644 --- a/core/fxge/dib/cfx_dibitmap.h +++ b/core/fxge/dib/cfx_dibitmap.h @@ -18,11 +18,13 @@ class CFX_DIBitmap : public CFX_DIBSource { template friend RetainPtr pdfium::MakeRetain(Args&&... args); + bool Create(int width, int height, FXDIB_Format format); + bool Create(int width, int height, FXDIB_Format format, - uint8_t* pBuffer = nullptr, - uint32_t pitch = 0); + uint8_t* pBuffer, + uint32_t pitch); bool Copy(const RetainPtr& pSrc); @@ -67,9 +69,9 @@ class CFX_DIBitmap : public CFX_DIBSource { const RetainPtr& pSrcBitmap, int src_left, int src_top, - int blend_type = FXDIB_BLEND_NORMAL, - const CFX_ClipRgn* pClipRgn = nullptr, - bool bRgbByteOrder = false); + int blend_type, + const CFX_ClipRgn* pClipRgn, + bool bRgbByteOrder); bool CompositeMask(int dest_left, int dest_top, @@ -79,10 +81,10 @@ class CFX_DIBitmap : public CFX_DIBSource { uint32_t color, int src_left, int src_top, - int blend_type = FXDIB_BLEND_NORMAL, - const CFX_ClipRgn* pClipRgn = nullptr, - bool bRgbByteOrder = false, - int alpha_flag = 0); + int blend_type, + const CFX_ClipRgn* pClipRgn, + bool bRgbByteOrder, + int alpha_flag); bool CompositeRect(int dest_left, int dest_top, -- cgit v1.2.3