diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-10 17:55:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-10 17:55:46 +0000 |
commit | 85ba2610cf05a75b52681f381bba2da3ba37b984 (patch) | |
tree | dcf1553a49ca032eaadab986fdc12f1fcf893b59 /core/fxge/cfx_renderdevice.h | |
parent | 537115b5a3ceccfe8ce2ca79577b61c5ec31c432 (diff) | |
download | pdfium-85ba2610cf05a75b52681f381bba2da3ba37b984.tar.xz |
Change FillRectWithBlend methods to take FX_RECT by const-ref.
They currently take const FX_RECT*, but the pointer is never nullptr.
Also add a comment to explain why FX_RECT is the way it is. It has the
same layout as a win32 RECT.
Change-Id: Icf0e4c3eb25fe03317590a736578e053b9dccf7a
Reviewed-on: https://pdfium-review.googlesource.com/30051
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxge/cfx_renderdevice.h')
-rw-r--r-- | core/fxge/cfx_renderdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/cfx_renderdevice.h b/core/fxge/cfx_renderdevice.h index 124e5e9995..6c91d55140 100644 --- a/core/fxge/cfx_renderdevice.h +++ b/core/fxge/cfx_renderdevice.h @@ -145,7 +145,7 @@ class CFX_RenderDevice { int fill_mode, int blend_type); bool FillRect(const FX_RECT* pRect, uint32_t color) { - return FillRectWithBlend(pRect, color, FXDIB_BLEND_NORMAL); + return FillRectWithBlend(*pRect, color, FXDIB_BLEND_NORMAL); } RetainPtr<CFX_DIBitmap> GetBackDrop(); @@ -290,7 +290,7 @@ class CFX_RenderDevice { uint32_t color, int fill_mode, int blend_type); - bool FillRectWithBlend(const FX_RECT* pRect, uint32_t color, int blend_type); + bool FillRectWithBlend(const FX_RECT& rect, uint32_t color, int blend_type); RetainPtr<CFX_DIBitmap> m_pBitmap; int m_Width; |