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_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fxge/include/cfx_gemodule.h" | 12 #include "core/fxge/include/cfx_gemodule.h" |
13 #include "core/fxge/include/fx_dib.h" | 13 #include "core/fxge/include/fx_dib.h" |
14 #include "core/fxge/include/fx_font.h" | 14 #include "core/fxge/include/fx_font.h" |
15 | 15 |
16 class CFX_Font; | 16 class CFX_Font; |
| 17 class CFX_FontCache; |
17 class CFX_GraphStateData; | 18 class CFX_GraphStateData; |
18 class IFX_RenderDeviceDriver; | 19 class IFX_RenderDeviceDriver; |
19 | 20 |
20 #define FXDC_DEVICE_CLASS 1 | 21 #define FXDC_DEVICE_CLASS 1 |
21 #define FXDC_PIXEL_WIDTH 2 | 22 #define FXDC_PIXEL_WIDTH 2 |
22 #define FXDC_PIXEL_HEIGHT 3 | 23 #define FXDC_PIXEL_HEIGHT 3 |
23 #define FXDC_BITS_PIXEL 4 | 24 #define FXDC_BITS_PIXEL 4 |
24 #define FXDC_HORZ_SIZE 5 | 25 #define FXDC_HORZ_SIZE 5 |
25 #define FXDC_VERT_SIZE 6 | 26 #define FXDC_VERT_SIZE 6 |
26 #define FXDC_RENDER_CAPS 7 | 27 #define FXDC_RENDER_CAPS 7 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 const CFX_Matrix* pMatrix, | 201 const CFX_Matrix* pMatrix, |
201 uint32_t flags, | 202 uint32_t flags, |
202 void*& handle, | 203 void*& handle, |
203 int blend_type); | 204 int blend_type); |
204 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); | 205 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); |
205 void CancelDIBits(void* handle); | 206 void CancelDIBits(void* handle); |
206 | 207 |
207 FX_BOOL DrawNormalText(int nChars, | 208 FX_BOOL DrawNormalText(int nChars, |
208 const FXTEXT_CHARPOS* pCharPos, | 209 const FXTEXT_CHARPOS* pCharPos, |
209 CFX_Font* pFont, | 210 CFX_Font* pFont, |
| 211 CFX_FontCache* pCache, |
210 FX_FLOAT font_size, | 212 FX_FLOAT font_size, |
211 const CFX_Matrix* pText2Device, | 213 const CFX_Matrix* pText2Device, |
212 uint32_t fill_color, | 214 uint32_t fill_color, |
213 uint32_t text_flags); | 215 uint32_t text_flags); |
214 FX_BOOL DrawTextPath(int nChars, | 216 FX_BOOL DrawTextPath(int nChars, |
215 const FXTEXT_CHARPOS* pCharPos, | 217 const FXTEXT_CHARPOS* pCharPos, |
216 CFX_Font* pFont, | 218 CFX_Font* pFont, |
| 219 CFX_FontCache* pCache, |
217 FX_FLOAT font_size, | 220 FX_FLOAT font_size, |
218 const CFX_Matrix* pText2User, | 221 const CFX_Matrix* pText2User, |
219 const CFX_Matrix* pUser2Device, | 222 const CFX_Matrix* pUser2Device, |
220 const CFX_GraphStateData* pGraphState, | 223 const CFX_GraphStateData* pGraphState, |
221 uint32_t fill_color, | 224 uint32_t fill_color, |
222 uint32_t stroke_color, | 225 uint32_t stroke_color, |
223 CFX_PathData* pClippingPath, | 226 CFX_PathData* pClippingPath, |
224 int nFlag); | 227 int nFlag); |
225 | 228 |
226 #ifdef _SKIA_SUPPORT_ | 229 #ifdef _SKIA_SUPPORT_ |
(...skipping 22 matching lines...) Expand all Loading... |
249 int m_Width; | 252 int m_Width; |
250 int m_Height; | 253 int m_Height; |
251 int m_bpp; | 254 int m_bpp; |
252 int m_RenderCaps; | 255 int m_RenderCaps; |
253 int m_DeviceClass; | 256 int m_DeviceClass; |
254 FX_RECT m_ClipBox; | 257 FX_RECT m_ClipBox; |
255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; | 258 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; |
256 }; | 259 }; |
257 | 260 |
258 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 261 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
OLD | NEW |