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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 static const int kStepLimit = 100; | 144 static const int kStepLimit = 100; |
145 | 145 |
146 Status m_Status; | 146 Status m_Status; |
147 CPDF_RenderContext* const m_pContext; | 147 CPDF_RenderContext* const m_pContext; |
148 CFX_RenderDevice* const m_pDevice; | 148 CFX_RenderDevice* const m_pDevice; |
149 const CPDF_RenderOptions* const m_pOptions; | 149 const CPDF_RenderOptions* const m_pOptions; |
150 std::unique_ptr<CPDF_RenderStatus> m_pRenderStatus; | 150 std::unique_ptr<CPDF_RenderStatus> m_pRenderStatus; |
151 CFX_FloatRect m_ClipRect; | 151 CFX_FloatRect m_ClipRect; |
152 FX_DWORD m_LayerIndex; | 152 FX_DWORD m_LayerIndex; |
153 CPDF_RenderContext::Layer* m_pCurrentLayer; | 153 CPDF_RenderContext::Layer* m_pCurrentLayer; |
154 FX_POSITION m_LastObjectRendered; | 154 CPDF_PageObjectList::iterator m_LastObjectRendered; |
155 }; | 155 }; |
156 | 156 |
157 class CPDF_TextRenderer { | 157 class CPDF_TextRenderer { |
158 public: | 158 public: |
159 static void DrawTextString(CFX_RenderDevice* pDevice, | 159 static void DrawTextString(CFX_RenderDevice* pDevice, |
160 int left, | 160 int left, |
161 int top, | 161 int top, |
162 CPDF_Font* pFont, | 162 CPDF_Font* pFont, |
163 int height, | 163 int height, |
164 const CFX_ByteString& str, | 164 const CFX_ByteString& str, |
(...skipping 94 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 |