diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-04 12:18:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-04 12:18:35 -0700 |
commit | 69d9c68e705afa7a4008feb9bbeb19cea887ed47 (patch) | |
tree | b5509c51aeeb89c99c7a4e0a60f8e5f29af5245c /core/fpdfapi/fpdf_render/cpdf_rendercontext.h | |
parent | 488b7ad845d6de212d89cd957303b294ecfa5922 (diff) | |
download | pdfium-69d9c68e705afa7a4008feb9bbeb19cea887ed47.tar.xz |
Move core/fpdfapi/fpdf_render to core/fpdfapi/render
BUG=pdfium:603
Review-Url: https://codereview.chromium.org/2393593002
Diffstat (limited to 'core/fpdfapi/fpdf_render/cpdf_rendercontext.h')
-rw-r--r-- | core/fpdfapi/fpdf_render/cpdf_rendercontext.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/core/fpdfapi/fpdf_render/cpdf_rendercontext.h b/core/fpdfapi/fpdf_render/cpdf_rendercontext.h deleted file mode 100644 index 5d0845789f..0000000000 --- a/core/fpdfapi/fpdf_render/cpdf_rendercontext.h +++ /dev/null @@ -1,67 +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_CPDF_RENDERCONTEXT_H_ -#define CORE_FPDFAPI_FPDF_RENDER_CPDF_RENDERCONTEXT_H_ - -#include "core/fxcrt/fx_basic.h" -#include "core/fxcrt/fx_coordinates.h" - -class CPDF_Dictionary; -class CPDF_Document; -class CPDF_Page; -class CPDF_PageObject; -class CPDF_PageObjectHolder; -class CPDF_PageRenderCache; -class CPDF_RenderOptions; -class CFX_DIBitmap; -class CFX_Matrix; -class CFX_RenderDevice; - -class CPDF_RenderContext { - public: - class Layer { - public: - CPDF_PageObjectHolder* m_pObjectHolder; - CFX_Matrix m_Matrix; - }; - - explicit CPDF_RenderContext(CPDF_Page* pPage); - CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); - ~CPDF_RenderContext(); - - void AppendLayer(CPDF_PageObjectHolder* pObjectHolder, - const CFX_Matrix* pObject2Device); - - void Render(CFX_RenderDevice* pDevice, - const CPDF_RenderOptions* pOptions, - const CFX_Matrix* pFinalMatrix); - - void Render(CFX_RenderDevice* pDevice, - const CPDF_PageObject* pStopObj, - const CPDF_RenderOptions* pOptions, - const CFX_Matrix* pFinalMatrix); - - void GetBackground(CFX_DIBitmap* pBuffer, - const CPDF_PageObject* pObj, - const CPDF_RenderOptions* pOptions, - CFX_Matrix* pFinalMatrix); - - uint32_t CountLayers() const { return m_Layers.GetSize(); } - Layer* GetLayer(uint32_t index) { return m_Layers.GetDataPtr(index); } - - CPDF_Document* GetDocument() const { return m_pDocument; } - CPDF_Dictionary* GetPageResources() const { return m_pPageResources; } - CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } - - protected: - CPDF_Document* const m_pDocument; - CPDF_Dictionary* m_pPageResources; - CPDF_PageRenderCache* m_pPageCache; - CFX_ArrayTemplate<Layer> m_Layers; -}; - -#endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_RENDERCONTEXT_H_ |