From 2f7653c0d8fe60f1a4956382dcb3d73822694dda Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Fri, 18 Aug 2017 14:04:56 -0400 Subject: Converted DrawCosmeticLine() to take point objects Converted CFX_RenderDevice::DrawCosmeticLine() and IFX_RenderDeviceDriver:: DrawCosmeticLine() to take in CFX_PointF objects instead of two coordinates per point. Bug=pdfium:769 Change-Id: I6116e4106a61487184a71e79c1dca3a85e8c7c27 Reviewed-on: https://pdfium-review.googlesource.com/11410 Reviewed-by: dsinclair Commit-Queue: dsinclair --- core/fxge/ifx_renderdevicedriver.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/fxge/ifx_renderdevicedriver.h') diff --git a/core/fxge/ifx_renderdevicedriver.h b/core/fxge/ifx_renderdevicedriver.h index f4df846011..1e4e30584e 100644 --- a/core/fxge/ifx_renderdevicedriver.h +++ b/core/fxge/ifx_renderdevicedriver.h @@ -10,6 +10,7 @@ #include #include "core/fxcrt/cfx_retain_ptr.h" +#include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_system.h" class CFX_DIBitmap; @@ -53,10 +54,8 @@ class IFX_RenderDeviceDriver { virtual bool FillRectWithBlend(const FX_RECT* pRect, uint32_t fill_color, int blend_type); - virtual bool DrawCosmeticLine(float x1, - float y1, - float x2, - float y2, + virtual bool DrawCosmeticLine(const CFX_PointF& ptMoveTo, + const CFX_PointF& ptLineTo, uint32_t color, int blend_type); -- cgit v1.2.3