From cde8b8cb0db2784d8f591fbfa7cfe7a67092b5fa Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 25 Oct 2018 22:25:51 +0000 Subject: Pass source rect parameter to SetDIBits() by const-ref. In RenderDeviceDriverIface() implementations. Change-Id: Ic5e0239a29e7fa7b70e9ef65c82df7e773f8e363 Reviewed-on: https://pdfium-review.googlesource.com/c/44610 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fxge/win32/win32_int.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/fxge/win32/win32_int.h') diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h index c23cc8bdda..43ec6056fd 100644 --- a/core/fxge/win32/win32_int.h +++ b/core/fxge/win32/win32_int.h @@ -98,7 +98,7 @@ class CGdiDeviceDriver : public RenderDeviceDriverIface { void DrawLine(float x1, float y1, float x2, float y2); bool GDI_SetDIBits(const RetainPtr& pBitmap, - const FX_RECT* pSrcRect, + const FX_RECT& src_rect, int left, int top); bool GDI_StretchDIBits(const RetainPtr& pBitmap, @@ -135,7 +135,7 @@ class CGdiDisplayDriver final : public CGdiDeviceDriver { int top) override; bool SetDIBits(const RetainPtr& pBitmap, uint32_t color, - const FX_RECT* pSrcRect, + const FX_RECT& src_rect, int left, int top, BlendMode blend_type) override; @@ -174,7 +174,7 @@ class CGdiPrinterDriver final : public CGdiDeviceDriver { int GetDeviceCaps(int caps_id) const override; bool SetDIBits(const RetainPtr& pBitmap, uint32_t color, - const FX_RECT* pSrcRect, + const FX_RECT& src_rect, int left, int top, BlendMode blend_type) override; @@ -233,7 +233,7 @@ class CPSPrinterDriver final : public RenderDeviceDriverIface { bool GetClipBox(FX_RECT* pRect) override; bool SetDIBits(const RetainPtr& pBitmap, uint32_t color, - const FX_RECT* pSrcRect, + const FX_RECT& src_rect, int left, int top, BlendMode blend_type) override; @@ -296,7 +296,7 @@ class CTextOnlyPrinterDriver final : public RenderDeviceDriverIface { bool GetClipBox(FX_RECT* pRect) override; bool SetDIBits(const RetainPtr& pBitmap, uint32_t color, - const FX_RECT* pSrcRect, + const FX_RECT& src_rect, int left, int top, BlendMode blend_type) override; -- cgit v1.2.3