| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_RENDER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 FX_DWORD m_AddFlags; | 67 FX_DWORD m_AddFlags; |
| 68 IPDF_OCContext* m_pOCContext; | 68 IPDF_OCContext* m_pOCContext; |
| 69 FX_DWORD m_dwLimitCacheSize; | 69 FX_DWORD m_dwLimitCacheSize; |
| 70 int m_HalftoneLimit; | 70 int m_HalftoneLimit; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class CPDF_RenderContext { | 73 class CPDF_RenderContext { |
| 74 public: | 74 public: |
| 75 class Layer { | 75 class Layer { |
| 76 public: | 76 public: |
| 77 CPDF_PageObjectList* m_pObjectList; | 77 CPDF_PageObjectHolder* m_pObjectHolder; |
| 78 CFX_Matrix m_Matrix; | 78 CFX_Matrix m_Matrix; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 explicit CPDF_RenderContext(CPDF_Page* pPage); | 81 explicit CPDF_RenderContext(CPDF_Page* pPage); |
| 82 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); | 82 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); |
| 83 ~CPDF_RenderContext(); | 83 ~CPDF_RenderContext(); |
| 84 | 84 |
| 85 void AppendLayer(CPDF_PageObjectList* pObjectList, | 85 void AppendLayer(CPDF_PageObjectHolder* pObjectHolder, |
| 86 const CFX_Matrix* pObject2Device); | 86 const CFX_Matrix* pObject2Device); |
| 87 | 87 |
| 88 void Render(CFX_RenderDevice* pDevice, | 88 void Render(CFX_RenderDevice* pDevice, |
| 89 const CPDF_RenderOptions* pOptions, | 89 const CPDF_RenderOptions* pOptions, |
| 90 const CFX_Matrix* pFinalMatrix); | 90 const CFX_Matrix* pFinalMatrix); |
| 91 | 91 |
| 92 void Render(CFX_RenderDevice* pDevice, | 92 void Render(CFX_RenderDevice* pDevice, |
| 93 const CPDF_PageObject* pStopObj, | 93 const CPDF_PageObject* pStopObj, |
| 94 const CPDF_RenderOptions* pOptions, | 94 const CPDF_RenderOptions* pOptions, |
| 95 const CFX_Matrix* pFinalMatrix); | 95 const CFX_Matrix* pFinalMatrix); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; | 259 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; |
| 260 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; | 260 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; |
| 261 FX_DWORD m_nTimeCount; | 261 FX_DWORD m_nTimeCount; |
| 262 FX_DWORD m_nCacheSize; | 262 FX_DWORD m_nCacheSize; |
| 263 FX_BOOL m_bCurFindCache; | 263 FX_BOOL m_bCurFindCache; |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); | 266 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); |
| 267 | 267 |
| 268 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ | 268 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |
| OLD | NEW |