diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-30 17:11:19 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-31 01:15:56 +0000 |
commit | cc2b38d41141a939c7ef73c0066418b8d823c681 (patch) | |
tree | d35174ad9f3abea74c46a13dd76969cbd0f749dd /core/fpdfapi/render/cpdf_progressiverenderer.cpp | |
parent | 0158106c1c77c6af4f7195d086cb0f2d129de838 (diff) | |
download | pdfium-cc2b38d41141a939c7ef73c0066418b8d823c681.tar.xz |
Split IFX_Pause out of fx_basic
This CL moves IFX_Pause out to its own class from fx_basic and updates
includes as needed.
Change-Id: Iebdd183d8c85aa17570f190f1a7d1602c0af3c8b
Reviewed-on: https://pdfium-review.googlesource.com/12491
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_progressiverenderer.cpp')
-rw-r--r-- | core/fpdfapi/render/cpdf_progressiverenderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_progressiverenderer.cpp b/core/fpdfapi/render/cpdf_progressiverenderer.cpp index 3c6be3ba34..d906a9325d 100644 --- a/core/fpdfapi/render/cpdf_progressiverenderer.cpp +++ b/core/fpdfapi/render/cpdf_progressiverenderer.cpp @@ -13,6 +13,7 @@ #include "core/fpdfapi/render/cpdf_pagerendercache.h" #include "core/fpdfapi/render/cpdf_renderoptions.h" #include "core/fpdfapi/render/cpdf_renderstatus.h" +#include "core/fxcrt/ifx_pauseindicator.h" #include "core/fxge/cfx_renderdevice.h" #include "third_party/base/ptr_util.h" @@ -34,7 +35,7 @@ CPDF_ProgressiveRenderer::~CPDF_ProgressiveRenderer() { } } -void CPDF_ProgressiveRenderer::Start(IFX_Pause* pPause) { +void CPDF_ProgressiveRenderer::Start(IFX_PauseIndicator* pPause) { if (!m_pContext || !m_pDevice || m_Status != Ready) { m_Status = Failed; return; @@ -43,7 +44,7 @@ void CPDF_ProgressiveRenderer::Start(IFX_Pause* pPause) { Continue(pPause); } -void CPDF_ProgressiveRenderer::Continue(IFX_Pause* pPause) { +void CPDF_ProgressiveRenderer::Continue(IFX_PauseIndicator* pPause) { while (m_Status == ToBeContinued) { if (!m_pCurrentLayer) { if (m_LayerIndex >= m_pContext->CountLayers()) { |