diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-29 12:31:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-29 12:31:44 -0700 |
commit | 61df2c78c3fb28bb3c3bd9be90e4c0aa03cd55a6 (patch) | |
tree | 822334a7bd8f0ec50dfaa6b555d298927ec7e24c /core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h | |
parent | c6c425af1156587fd9b770e5d40bc087df0c63d8 (diff) | |
download | pdfium-61df2c78c3fb28bb3c3bd9be90e4c0aa03cd55a6.tar.xz |
Move core/fpdfapi/fpdf_render/include to core/fpdfapi/fpdf_render
BUG=pdfium:611
Review-Url: https://codereview.chromium.org/2382763002
Diffstat (limited to 'core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h')
-rw-r--r-- | core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h b/core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h deleted file mode 100644 index 96e30412d5..0000000000 --- a/core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2016 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 CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_PROGRESSIVERENDERER_H_ -#define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_PROGRESSIVERENDERER_H_ - -#include <memory> - -#include "core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h" -#include "core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h" -#include "core/fxcrt/include/fx_coordinates.h" -#include "core/fxcrt/include/fx_system.h" - -class CPDF_RenderOptions; -class CPDF_RenderStatus; -class CFX_RenderDevice; -class IFX_Pause; - -class CPDF_ProgressiveRenderer { - public: - // Must match FDF_RENDER_* definitions in public/fpdf_progressive.h, but - // cannot #include that header. fpdfsdk/fpdf_progressive.cpp has - // static_asserts to make sure the two sets of values match. - enum Status { - Ready, // FPDF_RENDER_READER - ToBeContinued, // FPDF_RENDER_TOBECOUNTINUED - Done, // FPDF_RENDER_DONE - Failed // FPDF_RENDER_FAILED - }; - - static int ToFPDFStatus(Status status) { return static_cast<int>(status); } - - CPDF_ProgressiveRenderer(CPDF_RenderContext* pContext, - CFX_RenderDevice* pDevice, - const CPDF_RenderOptions* pOptions); - ~CPDF_ProgressiveRenderer(); - - Status GetStatus() const { return m_Status; } - void Start(IFX_Pause* pPause); - void Continue(IFX_Pause* pPause); - - private: - void RenderStep(); - - // Maximum page objects to render before checking for pause. - static const int kStepLimit = 100; - - Status m_Status; - CPDF_RenderContext* const m_pContext; - CFX_RenderDevice* const m_pDevice; - const CPDF_RenderOptions* const m_pOptions; - std::unique_ptr<CPDF_RenderStatus> m_pRenderStatus; - CFX_FloatRect m_ClipRect; - uint32_t m_LayerIndex; - CPDF_RenderContext::Layer* m_pCurrentLayer; - CPDF_PageObjectList::iterator m_LastObjectRendered; -}; - -#endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_PROGRESSIVERENDERER_H_ |