Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1365)

Unified Diff: xfa/fde/fde_render.cpp

Issue 1866333003: Remove IFDE_Image, IFDE_PathSet, IFDE_ImageSet, and IFDE_WidgetSet. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fde/fde_iterator.cpp ('k') | xfa/fde/fde_visualset.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fde/fde_render.cpp
diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp
index 59bb5f1aa20c642664d06f8fd4aeb7a620198929..b4259f71d990e5b09ebdde951fc41c1387fecad0 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) {
« no previous file with comments | « xfa/fde/fde_iterator.cpp ('k') | xfa/fde/fde_visualset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698