diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-12 09:51:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-12 09:51:45 -0700 |
commit | 25c223d1c3a662a0e69a5bf95083afbd5fa3cd97 (patch) | |
tree | d1b6a27b093b969696c2697dd183deb21d8cb6bd /xfa/fde/fde_pen.h | |
parent | f9924422a4cd1d1b6d2d4240c83b5c1082da3629 (diff) | |
download | pdfium-25c223d1c3a662a0e69a5bf95083afbd5fa3cd97.tar.xz |
Only SolidBrush types are created, remove other brushes.
We only ever create a CFDE_SolidBrush, there is nothing which creates Texture,
Hatch or LinearGradient brushes. This Cl removes all the code that isn't
used for SolidBrush.
A followup Cl will rename SolidBrush to Brush and remove the Brush interface
in favour of the concrete class.
BUG=pdfium:468
Review URL: https://codereview.chromium.org/1877383002
Diffstat (limited to 'xfa/fde/fde_pen.h')
-rw-r--r-- | xfa/fde/fde_pen.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xfa/fde/fde_pen.h b/xfa/fde/fde_pen.h index 4dfdd8ac22..9253726b81 100644 --- a/xfa/fde/fde_pen.h +++ b/xfa/fde/fde_pen.h @@ -9,12 +9,7 @@ class IFDE_Pen; -#define FDE_PENTYPE_Unknown FDE_BRUSHTYPE_Unknown #define FDE_PENTYPE_SolidColor FDE_BRUSHTYPE_Solid -#define FDE_PENTYPE_HatchBrush FDE_BRUSHTYPE_Hatch -#define FDE_PENTYPE_TextureBrush FDE_BRUSHTYPE_Texture -#define FDE_PENTYPE_LinearGradient FDE_BRUSHTYPE_LinearGradient -#define FDE_PENTYPE_MAX FDE_BRUSHTYPE_MAX #define FDE_DASHSTYLE_Solid 0 #define FDE_DASHSTYLE_Dash 1 @@ -39,8 +34,8 @@ typedef CFX_ArrayTemplate<FDE_COMPOUNDPATTERN> CFDE_CompoundPatterns; class IFDE_Pen { public: - static IFDE_Pen* Create(); virtual ~IFDE_Pen() {} + virtual void Release() = 0; virtual int32_t GetType() const = 0; virtual FX_ARGB GetColor() const = 0; |