summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_renderdevice.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-17 12:05:40 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-17 16:22:56 +0000
commit0b7378afe3dee6db6cff8ee834e758d3a76efa3b (patch)
tree04ad09e12a5cbd33005194b3bf031c1d690e8ba8 /core/fxge/cfx_renderdevice.h
parentd6aff2f2e8469344becd6f73e443c31bca9baac0 (diff)
downloadpdfium-0b7378afe3dee6db6cff8ee834e758d3a76efa3b.tar.xz
Move CPWL_Utils Draw methods to CFX_RenderDevice
This CL removes the drawing code from the AP stream generation code in CPWL_Utils and places it in CFX_RenderDevice. Change-Id: I5335fc38368740ba3ddc676ee856201a358979fc Reviewed-on: https://pdfium-review.googlesource.com/7715 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_renderdevice.h')
-rw-r--r--core/fxge/cfx_renderdevice.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/core/fxge/cfx_renderdevice.h b/core/fxge/cfx_renderdevice.h
index 83c45f9528..ef15718d58 100644
--- a/core/fxge/cfx_renderdevice.h
+++ b/core/fxge/cfx_renderdevice.h
@@ -10,6 +10,7 @@
#include <memory>
#include "core/fxcrt/cfx_unowned_ptr.h"
+#include "core/fxge/cfx_color.h"
#include "core/fxge/fx_dib.h"
#include "core/fxge/fx_font.h"
@@ -227,6 +228,42 @@ class CFX_RenderDevice {
CFX_PathData* pClippingPath,
int nFlag);
+ void DrawFillRect(CFX_Matrix* pUser2Device,
+ const CFX_FloatRect& rect,
+ const CFX_Color& color,
+ int32_t nTransparency);
+ void DrawFillRect(CFX_Matrix* pUser2Device,
+ const CFX_FloatRect& rect,
+ const FX_COLORREF& color);
+ void DrawStrokeRect(CFX_Matrix* pUser2Device,
+ const CFX_FloatRect& rect,
+ const FX_COLORREF& color,
+ float fWidth);
+ void DrawStrokeLine(CFX_Matrix* pUser2Device,
+ const CFX_PointF& ptMoveTo,
+ const CFX_PointF& ptLineTo,
+ const FX_COLORREF& color,
+ float fWidth);
+ void DrawBorder(CFX_Matrix* pUser2Device,
+ const CFX_FloatRect& rect,
+ float fWidth,
+ const CFX_Color& color,
+ const CFX_Color& crLeftTop,
+ const CFX_Color& crRightBottom,
+ BorderStyle nStyle,
+ int32_t nTransparency);
+ void DrawFillArea(CFX_Matrix* pUser2Device,
+ const CFX_PointF* pPts,
+ int32_t nCount,
+ const FX_COLORREF& color);
+ void DrawShadow(CFX_Matrix* pUser2Device,
+ bool bVertical,
+ bool bHorizontal,
+ CFX_FloatRect rect,
+ int32_t nTransparency,
+ int32_t nStartGray,
+ int32_t nEndGray);
+
#ifdef _SKIA_SUPPORT_
virtual void DebugVerifyBitmapIsPreMultiplied() const;
virtual bool SetBitsWithMask(const CFX_RetainPtr<CFX_DIBSource>& pBitmap,