OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ |
8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ | 8 #define CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void Render(CFX_RenderDevice* pDevice, | 43 void Render(CFX_RenderDevice* pDevice, |
44 const CPDF_PageObject* pStopObj, | 44 const CPDF_PageObject* pStopObj, |
45 const CPDF_RenderOptions* pOptions, | 45 const CPDF_RenderOptions* pOptions, |
46 const CFX_Matrix* pFinalMatrix); | 46 const CFX_Matrix* pFinalMatrix); |
47 | 47 |
48 void GetBackground(CFX_DIBitmap* pBuffer, | 48 void GetBackground(CFX_DIBitmap* pBuffer, |
49 const CPDF_PageObject* pObj, | 49 const CPDF_PageObject* pObj, |
50 const CPDF_RenderOptions* pOptions, | 50 const CPDF_RenderOptions* pOptions, |
51 CFX_Matrix* pFinalMatrix); | 51 CFX_Matrix* pFinalMatrix); |
52 | 52 |
53 FX_DWORD CountLayers() const { return m_Layers.GetSize(); } | 53 uint32_t CountLayers() const { return m_Layers.GetSize(); } |
54 Layer* GetLayer(FX_DWORD index) { return m_Layers.GetDataPtr(index); } | 54 Layer* GetLayer(uint32_t index) { return m_Layers.GetDataPtr(index); } |
55 | 55 |
56 CPDF_Document* GetDocument() const { return m_pDocument; } | 56 CPDF_Document* GetDocument() const { return m_pDocument; } |
57 CPDF_Dictionary* GetPageResources() const { return m_pPageResources; } | 57 CPDF_Dictionary* GetPageResources() const { return m_pPageResources; } |
58 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } | 58 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } |
59 | 59 |
60 protected: | 60 protected: |
61 CPDF_Document* const m_pDocument; | 61 CPDF_Document* const m_pDocument; |
62 CPDF_Dictionary* m_pPageResources; | 62 CPDF_Dictionary* m_pPageResources; |
63 CPDF_PageRenderCache* m_pPageCache; | 63 CPDF_PageRenderCache* m_pPageCache; |
64 FX_BOOL m_bFirstLayer; | 64 FX_BOOL m_bFirstLayer; |
65 CFX_ArrayTemplate<Layer> m_Layers; | 65 CFX_ArrayTemplate<Layer> m_Layers; |
66 }; | 66 }; |
67 | 67 |
68 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ | 68 #endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_RENDERCONTEXT_H_ |
OLD | NEW |