diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-13 10:58:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-13 10:58:52 -0700 |
commit | 08153b16fb1c7e9849cc33f1b9d4f1521240d18e (patch) | |
tree | 4906b17cc38830d9a341b571011c930907c06795 /xfa/fde/fde_render.cpp | |
parent | 6d8e981b51458f0381031fe240f5215db9906622 (diff) | |
download | pdfium-08153b16fb1c7e9849cc33f1b9d4f1521240d18e.tar.xz |
Remove IFDE_Image, IFDE_PathSet, IFDE_ImageSet, and IFDE_WidgetSet.
These interfaces were not implemented, removed.
BUG=pdfium:468
Review URL: https://codereview.chromium.org/1866333003
Diffstat (limited to 'xfa/fde/fde_render.cpp')
-rw-r--r-- | xfa/fde/fde_render.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp index 59bb5f1aa2..b4259f71d9 100644 --- a/xfa/fde/fde_render.cpp +++ b/xfa/fde/fde_render.cpp @@ -26,7 +26,6 @@ class CFDE_RenderContext : public IFDE_RenderContext, public CFX_Target { virtual FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } virtual FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); virtual void StopRender(); - void RenderPath(IFDE_PathSet* pPathSet, FDE_HVISUALOBJ hPath); void RenderText(IFDE_TextSet* pTextSet, FDE_HVISUALOBJ hText); FX_BOOL ApplyClip(IFDE_VisualSet* pVisualSet, FDE_HVISUALOBJ hObj, @@ -169,13 +168,6 @@ FDE_RENDERSTATUS CFDE_RenderContext::DoRender(IFX_Pause* pPause) { RenderText((IFDE_TextSet*)pVisualSet, hVisualObj); iCount += 5; break; - case FDE_VISUALOBJ_Path: - RenderPath((IFDE_PathSet*)pVisualSet, hVisualObj); - iCount += 20; - break; - case FDE_VISUALOBJ_Widget: - iCount += 10; - break; case FDE_VISUALOBJ_Canvas: FXSYS_assert(FALSE); break; @@ -243,33 +235,6 @@ void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet, RestoreClip(hState); } -void CFDE_RenderContext::RenderPath(IFDE_PathSet* pPathSet, - FDE_HVISUALOBJ hPath) { - FXSYS_assert(m_pRenderDevice); - FXSYS_assert(pPathSet && hPath); - - IFDE_Path* pPath = pPathSet->GetPath(hPath); - if (!pPath) - return; - - FDE_HDEVICESTATE hState; - FX_BOOL bClip = ApplyClip(pPathSet, hPath, hState); - int32_t iRenderMode = pPathSet->GetRenderMode(hPath); - if (iRenderMode & FDE_PATHRENDER_Stroke) { - CFDE_Pen* pPen = pPathSet->GetPen(hPath); - FX_FLOAT fWidth = pPathSet->GetPenWidth(hPath); - if (pPen && fWidth > 0) - m_pRenderDevice->DrawPath(pPen, fWidth, pPath, &m_Transform); - } - if (iRenderMode & FDE_PATHRENDER_Fill) { - CFDE_Brush* pBrush = pPathSet->GetBrush(hPath); - if (pBrush) - m_pRenderDevice->FillPath(pBrush, pPath, &m_Transform); - } - if (bClip) - RestoreClip(hState); -} - FX_BOOL CFDE_RenderContext::ApplyClip(IFDE_VisualSet* pVisualSet, FDE_HVISUALOBJ hObj, FDE_HDEVICESTATE& hState) { |