From f855489794ffd575d073eb575b04ac1ca1f286c2 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 17 Jan 2018 16:29:15 +0000 Subject: Move fill draw code to fill classes This CL moves the code related to drawing fills and the various types of fill to the specific fill classes. Change-Id: Ie151089b00ca96c5fa88d22ab5f697d9425297cd Reviewed-on: https://pdfium-review.googlesource.com/23071 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_radial.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_radial.h') diff --git a/xfa/fxfa/parser/cxfa_radial.h b/xfa/fxfa/parser/cxfa_radial.h index e3a3645e0c..b7ce95c695 100644 --- a/xfa/fxfa/parser/cxfa_radial.h +++ b/xfa/fxfa/parser/cxfa_radial.h @@ -7,15 +7,25 @@ #ifndef XFA_FXFA_PARSER_CXFA_RADIAL_H_ #define XFA_FXFA_PARSER_CXFA_RADIAL_H_ +#include "core/fxcrt/fx_coordinates.h" #include "xfa/fxfa/parser/cxfa_node.h" +#include "xfa/fxgraphics/cxfa_gepath.h" class CXFA_Color; +class CXFA_Graphics; class CXFA_Radial : public CXFA_Node { public: CXFA_Radial(CXFA_Document* doc, XFA_PacketType packet); ~CXFA_Radial() override; + void Draw(CXFA_Graphics* pGS, + CXFA_GEPath* fillPath, + FX_ARGB crStart, + const CFX_RectF& rtFill, + const CFX_Matrix& matrix); + + private: bool IsToEdge(); CXFA_Color* GetColorIfExists(); }; -- cgit v1.2.3