diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-04 12:12:06 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-04 16:48:35 +0000 |
commit | dcefccc9f0f2002f79a4a67048fac1360c1d6c26 (patch) | |
tree | 0b337a17f590d544ec2f20c5645cdb62b0b4c8b8 /xfa/fxfa/cxfa_rendercontext.cpp | |
parent | df673c28191cca181ef526d02f24b4a7a6f5e200 (diff) | |
download | pdfium-dcefccc9f0f2002f79a4a67048fac1360c1d6c26.tar.xz |
Removing unused IFX_Pause parameters
Remove more IFX_Pause parameters which are not used.
Change-Id: I9d10bb6b28d6d4d94ec3c4241b1c5a8a0709264c
Reviewed-on: https://pdfium-review.googlesource.com/4875
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_rendercontext.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_rendercontext.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/xfa/fxfa/cxfa_rendercontext.cpp b/xfa/fxfa/cxfa_rendercontext.cpp index 4b48dd4d18..3a4000885d 100644 --- a/xfa/fxfa/cxfa_rendercontext.cpp +++ b/xfa/fxfa/cxfa_rendercontext.cpp @@ -10,12 +10,6 @@ #include "xfa/fxfa/cxfa_ffwidget.h" #include "xfa/fxgraphics/cfx_graphics.h" -namespace { - -const int32_t kMaxCount = 30; - -} // namsepace - CXFA_RenderContext::CXFA_RenderContext() : m_pWidget(nullptr), m_pPageView(nullptr), m_pGS(nullptr), m_dwStatus(0) { m_matrix.SetIdentity(); @@ -47,7 +41,7 @@ int32_t CXFA_RenderContext::StartRender(CXFA_FFPageView* pPageView, return XFA_RENDERSTATUS_Ready; } -int32_t CXFA_RenderContext::DoRender(IFX_Pause* pPause) { +int32_t CXFA_RenderContext::DoRender() { int32_t iCount = 0; while (m_pWidget) { CXFA_FFWidget* pWidget = m_pWidget; @@ -59,8 +53,6 @@ int32_t CXFA_RenderContext::DoRender(IFX_Pause* pPause) { m_pWidget = m_pWidgetIterator->MoveToNext(); iCount++; - if (iCount > kMaxCount && pPause && pPause->NeedToPauseNow()) - return XFA_RENDERSTATUS_ToBeContinued; } return XFA_RENDERSTATUS_Done; } |