From 568aff520b4ca33d851317a4ea88807b4fd2da40 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Jun 2015 14:58:28 -0700 Subject: Fix -Wnon-virtual-dtor warnings on the XFA branch. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1183483003. --- xfa/src/fdp/include/fde_rdr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xfa/src/fdp/include/fde_rdr.h') diff --git a/xfa/src/fdp/include/fde_rdr.h b/xfa/src/fdp/include/fde_rdr.h index cbae1c26fa..aef459f24d 100644 --- a/xfa/src/fdp/include/fde_rdr.h +++ b/xfa/src/fdp/include/fde_rdr.h @@ -8,7 +8,7 @@ #define _FDE_RENDERCONTEXT class IFDE_Page; class IFDE_RenderDevice; -class IFDE_RenderContext; + void FDE_GetPageMatrix(CFX_Matrix &pageMatrix, const CFX_RectF &docPageRect, const CFX_Rect &devicePageRect, int32_t iRotate, FX_DWORD dwCoordinatesType = 0); enum FDE_RENDERSTATUS { FDE_RENDERSTATUS_Reset = 0, @@ -16,10 +16,12 @@ enum FDE_RENDERSTATUS { FDE_RENDERSTATUS_Done , FDE_RENDERSTATUS_Failed , }; + class IFDE_RenderContext { public: static IFDE_RenderContext* Create(); + virtual ~IFDE_RenderContext() {} virtual void Release() = 0; virtual FX_BOOL StartRender(IFDE_RenderDevice *pRenderDevice, IFDE_CanvasSet *pCanvasSet, -- cgit v1.2.3