| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 CPDF_Document* const m_pDocument; | 105 CPDF_Document* const m_pDocument; |
| 106 CPDF_Dictionary* m_pPageResources; | 106 CPDF_Dictionary* m_pPageResources; |
| 107 CPDF_PageRenderCache* m_pPageCache; | 107 CPDF_PageRenderCache* m_pPageCache; |
| 108 FX_BOOL m_bFirstLayer; | 108 FX_BOOL m_bFirstLayer; |
| 109 CFX_ArrayTemplate<Layer> m_Layers; | 109 CFX_ArrayTemplate<Layer> m_Layers; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 class CPDF_ProgressiveRenderer { | 112 class CPDF_ProgressiveRenderer { |
| 113 public: | 113 public: |
| 114 // Must match FDF_RENDER_* definitions in public/fpdf_progressive.h, but | 114 // Must match FDF_RENDER_* definitions in public/fpdf_progressive.h, but |
| 115 // cannot #include that header. fpdfsdk/src/fpdf_progressive.cpp has | 115 // cannot #include that header. fpdfsdk/fpdf_progressive.cpp has |
| 116 // static_asserts to make sure the two sets of values match. | 116 // static_asserts to make sure the two sets of values match. |
| 117 enum Status { | 117 enum Status { |
| 118 Ready, // FPDF_RENDER_READER | 118 Ready, // FPDF_RENDER_READER |
| 119 ToBeContinued, // FPDF_RENDER_TOBECOUNTINUED | 119 ToBeContinued, // FPDF_RENDER_TOBECOUNTINUED |
| 120 Done, // FPDF_RENDER_DONE | 120 Done, // FPDF_RENDER_DONE |
| 121 Failed // FPDF_RENDER_FAILED | 121 Failed // FPDF_RENDER_FAILED |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 static int ToFPDFStatus(Status status) { return static_cast<int>(status); } | 124 static int ToFPDFStatus(Status status) { return static_cast<int>(status); } |
| 125 | 125 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; | 254 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; |
| 255 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; | 255 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; |
| 256 FX_DWORD m_nTimeCount; | 256 FX_DWORD m_nTimeCount; |
| 257 FX_DWORD m_nCacheSize; | 257 FX_DWORD m_nCacheSize; |
| 258 FX_BOOL m_bCurFindCache; | 258 FX_BOOL m_bCurFindCache; |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); | 261 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); |
| 262 | 262 |
| 263 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ | 263 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |
| OLD | NEW |