| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 int m_HalftoneLimit; | 78 int m_HalftoneLimit; |
| 79 | 79 |
| 80 FX_ARGB TranslateColor(FX_ARGB argb) const; | 80 FX_ARGB TranslateColor(FX_ARGB argb) const; |
| 81 }; | 81 }; |
| 82 class CPDF_RenderContext { | 82 class CPDF_RenderContext { |
| 83 public: | 83 public: |
| 84 explicit CPDF_RenderContext(CPDF_Page* pPage); | 84 explicit CPDF_RenderContext(CPDF_Page* pPage); |
| 85 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); | 85 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); |
| 86 ~CPDF_RenderContext(); | 86 ~CPDF_RenderContext(); |
| 87 | 87 |
| 88 void AppendObjectList(CPDF_PageObjects* pObjs, | 88 void AppendObjectList(CPDF_PageObjectList* pObjs, |
| 89 const CFX_Matrix* pObject2Device); | 89 const CFX_Matrix* pObject2Device); |
| 90 | 90 |
| 91 void Render(CFX_RenderDevice* pDevice, | 91 void Render(CFX_RenderDevice* pDevice, |
| 92 const CPDF_RenderOptions* pOptions = NULL, | 92 const CPDF_RenderOptions* pOptions = NULL, |
| 93 const CFX_Matrix* pFinalMatrix = NULL); | 93 const CFX_Matrix* pFinalMatrix = NULL); |
| 94 | 94 |
| 95 void DrawObjectList(CFX_RenderDevice* pDevice, | 95 void DrawObjectList(CFX_RenderDevice* pDevice, |
| 96 CPDF_PageObjects* pObjs, | 96 CPDF_PageObjectList* pObjs, |
| 97 const CFX_Matrix* pObject2Device, | 97 const CFX_Matrix* pObject2Device, |
| 98 const CPDF_RenderOptions* pOptions); | 98 const CPDF_RenderOptions* pOptions); |
| 99 | 99 |
| 100 void GetBackground(CFX_DIBitmap* pBuffer, | 100 void GetBackground(CFX_DIBitmap* pBuffer, |
| 101 const CPDF_PageObject* pObj, | 101 const CPDF_PageObject* pObj, |
| 102 const CPDF_RenderOptions* pOptions, | 102 const CPDF_RenderOptions* pOptions, |
| 103 CFX_Matrix* pFinalMatrix); | 103 CFX_Matrix* pFinalMatrix); |
| 104 | 104 |
| 105 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } | 105 CPDF_PageRenderCache* GetPageCache() const { return m_pPageCache; } |
| 106 | 106 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 public: | 271 public: |
| 272 CPDF_RenderConfig(); | 272 CPDF_RenderConfig(); |
| 273 ~CPDF_RenderConfig(); | 273 ~CPDF_RenderConfig(); |
| 274 int m_HalftoneLimit; | 274 int m_HalftoneLimit; |
| 275 int m_RenderStepLimit; | 275 int m_RenderStepLimit; |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); | 278 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); |
| 279 | 279 |
| 280 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ | 280 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |
| OLD | NEW |