summaryrefslogtreecommitdiff
path: root/xfa/fxgraphics/cxfa_graphics.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 19:29:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 19:29:46 +0000
commitc37fa7d9c5c60ac407b46bfc2e7745afa0b2df85 (patch)
treeacca98967c4e532732ef9b15a399b2dc710e01e5 /xfa/fxgraphics/cxfa_graphics.h
parentdcc2f3cf96fd20782c32ae03629427fb93b219b2 (diff)
downloadpdfium-c37fa7d9c5c60ac407b46bfc2e7745afa0b2df85.tar.xz
Move code related to stroke line dash to CXFA_Stroke
This CL moves XFA_StrokeTypeSetLineDash into the CXFA_Stroke class and cleans up the unused CXFA_Graphics code for setting line dash values. Change-Id: If6db6c315571dbcea630bc32e0d05dae6c0f10be Reviewed-on: https://pdfium-review.googlesource.com/23114 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxgraphics/cxfa_graphics.h')
-rw-r--r--xfa/fxgraphics/cxfa_graphics.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/xfa/fxgraphics/cxfa_graphics.h b/xfa/fxgraphics/cxfa_graphics.h
index c8843bc87d..886bc45532 100644
--- a/xfa/fxgraphics/cxfa_graphics.h
+++ b/xfa/fxgraphics/cxfa_graphics.h
@@ -21,14 +21,6 @@ class CXFA_GEPath;
using FX_FillMode = int32_t;
-enum FX_DashStyle {
- FX_DASHSTYLE_Solid = 0,
- FX_DASHSTYLE_Dash = 1,
- FX_DASHSTYLE_Dot = 2,
- FX_DASHSTYLE_DashDot = 3,
- FX_DASHSTYLE_DashDotDot = 4
-};
-
enum class FX_HatchStyle {
Horizontal = 0,
Vertical = 1,
@@ -54,7 +46,7 @@ class CXFA_Graphics {
void SetLineCap(CFX_GraphStateData::LineCap lineCap);
void SetLineDash(float dashPhase, float* dashArray, int32_t dashCount);
- void SetLineDash(FX_DashStyle dashStyle);
+ void SetSolidLineDash();
void SetLineWidth(float lineWidth);
void EnableActOnDash();
void SetStrokeColor(const CXFA_GEColor& color);
@@ -82,7 +74,6 @@ class CXFA_Graphics {
CXFA_GEColor fillColor;
} m_info;
- void RenderDeviceSetLineDash(FX_DashStyle dashStyle);
void RenderDeviceStrokePath(const CXFA_GEPath* path,
const CFX_Matrix* matrix);
void RenderDeviceFillPath(const CXFA_GEPath* path,