summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_renderdevice.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-14 17:23:25 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 13:42:32 +0000
commit73b492a5d775c05d8c186c8478d1003edfffd34c (patch)
tree0815bab5627ae27f5eb2f1a45b90bb9dc10b9e1c /xfa/fde/cfde_renderdevice.h
parent5f0e64435c97755a7d309e80ea0a4dad83e76e73 (diff)
downloadpdfium-73b492a5d775c05d8c186c8478d1003edfffd34c.tar.xz
Remove CFDE_RenderDevice
This CL removes CFDE_RenderDevice. For most of the proxy'd calls we call the CFX_RenderDevice directly now. To set the clip rect an overload was added to accept a CFX_RectF and handle the casting to FX_RECT. The one needed method, DrawString, is move to a static on CFDE_TextOut. Change-Id: I95ea7e1fa1fd4702074b797c06423c9c9cb51db9 Reviewed-on: https://pdfium-review.googlesource.com/10951 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_renderdevice.h')
-rw-r--r--xfa/fde/cfde_renderdevice.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/xfa/fde/cfde_renderdevice.h b/xfa/fde/cfde_renderdevice.h
deleted file mode 100644
index ccc2ef281e..0000000000
--- a/xfa/fde/cfde_renderdevice.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FDE_CFDE_RENDERDEVICE_H_
-#define XFA_FDE_CFDE_RENDERDEVICE_H_
-
-#include <vector>
-
-#include "core/fxge/cfx_renderdevice.h"
-#include "xfa/fgas/font/cfgas_gefont.h"
-
-class CFX_PathData;
-class CFX_GraphStateData;
-
-class CFDE_RenderDevice {
- public:
- explicit CFDE_RenderDevice(CFX_RenderDevice* pDevice);
- ~CFDE_RenderDevice();
-
- int32_t GetWidth() const;
- int32_t GetHeight() const;
-
- void SaveState();
- void RestoreState();
-
- bool SetClipRect(const CFX_RectF& rtClip);
- const CFX_RectF& GetClipRect();
-
- bool DrawString(FX_ARGB color,
- const CFX_RetainPtr<CFGAS_GEFont>& pFont,
- const FXTEXT_CHARPOS* pCharPos,
- int32_t iCount,
- float fFontSize,
- const CFX_Matrix* pMatrix);
- bool DrawPath(FX_ARGB color,
- float fPenWidth,
- const CFX_PathData& pPath,
- const CFX_Matrix* pMatrix);
-
- private:
- CFX_RenderDevice* const m_pDevice;
- CFX_RectF m_rtClip;
-};
-
-#endif // XFA_FDE_CFDE_RENDERDEVICE_H_