summaryrefslogtreecommitdiff
path: root/xfa/fxgraphics/cxfa_graphics.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-14 18:56:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-14 18:56:54 +0000
commit5a423ef8708e61d43f1556ab09c2e09f496d700d (patch)
tree4d1858fa46836f33b7e334348cecd96318de6ea6 /xfa/fxgraphics/cxfa_graphics.h
parentc8619c8d1cebb6b64db248ec89db98ab4513ad3c (diff)
downloadpdfium-5a423ef8708e61d43f1556ab09c2e09f496d700d.tar.xz
Rename the fxgraphics classes
The build system doesn't like name clashes over directories in XFA. The Pattern and and Shading classes need to be renamed to not clash with future XFA node class names. Change-Id: I978da492d884626c0db2e11ac236a3399e9c7e58 Reviewed-on: https://pdfium-review.googlesource.com/18290 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxgraphics/cxfa_graphics.h')
-rw-r--r--xfa/fxgraphics/cxfa_graphics.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/xfa/fxgraphics/cxfa_graphics.h b/xfa/fxgraphics/cxfa_graphics.h
index 6b9dcb9a86..16cd123fc7 100644
--- a/xfa/fxgraphics/cxfa_graphics.h
+++ b/xfa/fxgraphics/cxfa_graphics.h
@@ -16,9 +16,9 @@
#include "core/fxge/cfx_renderdevice.h"
#include "core/fxge/fx_dib.h"
#include "core/fxge/fx_font.h"
-#include "xfa/fxgraphics/cxfa_color.h"
+#include "xfa/fxgraphics/cxfa_gecolor.h"
-class CXFA_Path;
+class CXFA_GEPath;
using FX_FillMode = int32_t;
@@ -58,11 +58,11 @@ class CXFA_Graphics {
void SetLineDash(FX_DashStyle dashStyle);
void SetLineWidth(float lineWidth);
void EnableActOnDash();
- void SetStrokeColor(const CXFA_Color& color);
- void SetFillColor(const CXFA_Color& color);
+ void SetStrokeColor(const CXFA_GEColor& color);
+ void SetFillColor(const CXFA_GEColor& color);
void SetClipRect(const CFX_RectF& rect);
- void StrokePath(CXFA_Path* path, const CFX_Matrix* matrix);
- void FillPath(CXFA_Path* path,
+ void StrokePath(CXFA_GEPath* path, const CFX_Matrix* matrix);
+ void FillPath(CXFA_GEPath* path,
FX_FillMode fillMode,
const CFX_Matrix* matrix);
void StretchImage(const RetainPtr<CFX_DIBSource>& source,
@@ -82,23 +82,24 @@ class CXFA_Graphics {
CFX_GraphStateData graphState;
CFX_Matrix CTM;
bool isActOnDash;
- CXFA_Color strokeColor;
- CXFA_Color fillColor;
+ CXFA_GEColor strokeColor;
+ CXFA_GEColor fillColor;
} m_info;
void RenderDeviceSetLineDash(FX_DashStyle dashStyle);
- void RenderDeviceStrokePath(const CXFA_Path* path, const CFX_Matrix* matrix);
- void RenderDeviceFillPath(const CXFA_Path* path,
+ void RenderDeviceStrokePath(const CXFA_GEPath* path,
+ const CFX_Matrix* matrix);
+ void RenderDeviceFillPath(const CXFA_GEPath* path,
FX_FillMode fillMode,
const CFX_Matrix* matrix);
void RenderDeviceStretchImage(const RetainPtr<CFX_DIBSource>& source,
const CFX_RectF& rect,
const CFX_Matrix& matrix);
- void FillPathWithPattern(const CXFA_Path* path,
+ void FillPathWithPattern(const CXFA_GEPath* path,
FX_FillMode fillMode,
const CFX_Matrix& matrix);
- void FillPathWithShading(const CXFA_Path* path,
+ void FillPathWithShading(const CXFA_GEPath* path,
FX_FillMode fillMode,
const CFX_Matrix& matrix);