From 25c223d1c3a662a0e69a5bf95083afbd5fa3cd97 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 12 Apr 2016 09:51:45 -0700 Subject: 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 --- xfa/fde/fde_render.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fde/fde_render.cpp') diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp index 17bf20afbd..fed831348a 100644 --- a/xfa/fde/fde_render.cpp +++ b/xfa/fde/fde_render.cpp @@ -6,6 +6,7 @@ #include "xfa/fde/fde_render.h" +#include "xfa/fde/fde_object.h" #include "xfa/fde/fde_renderdevice.h" #include "xfa/fgas/crt/fgas_memory.h" @@ -216,7 +217,7 @@ void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet, return; } if (m_pSolidBrush == NULL) { - m_pSolidBrush = (IFDE_SolidBrush*)IFDE_Brush::Create(FDE_BRUSHTYPE_Solid); + m_pSolidBrush = new CFDE_SolidBrush; if (m_pSolidBrush == NULL) { return; } -- cgit v1.2.3