diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-18 14:04:56 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-21 14:50:36 +0000 |
commit | 2f7653c0d8fe60f1a4956382dcb3d73822694dda (patch) | |
tree | 5841475fc11d51c0787aed1e73b80e46805e967d /core/fxge/ifx_renderdevicedriver.cpp | |
parent | 8b2107ed93465c6f9c1dd647e93446354dbe3738 (diff) | |
download | pdfium-2f7653c0d8fe60f1a4956382dcb3d73822694dda.tar.xz |
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 <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/ifx_renderdevicedriver.cpp')
-rw-r--r-- | core/fxge/ifx_renderdevicedriver.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fxge/ifx_renderdevicedriver.cpp b/core/fxge/ifx_renderdevicedriver.cpp index 9b94e883f2..ac7a7424e7 100644 --- a/core/fxge/ifx_renderdevicedriver.cpp +++ b/core/fxge/ifx_renderdevicedriver.cpp @@ -39,10 +39,8 @@ bool IFX_RenderDeviceDriver::FillRectWithBlend(const FX_RECT* pRect, return false; } -bool IFX_RenderDeviceDriver::DrawCosmeticLine(float x1, - float y1, - float x2, - float y2, +bool IFX_RenderDeviceDriver::DrawCosmeticLine(const CFX_PointF& ptMoveTo, + const CFX_PointF& ptLineTo, uint32_t color, int blend_type) { return false; |