Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: core/fxge/include/cfx_renderdevice.h

Issue 2158023002: Pdfium: Fix fonts leaking on ClosePage. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix xfa tests. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
18 class CFX_GraphStateData; 17 class CFX_GraphStateData;
19 class IFX_RenderDeviceDriver; 18 class IFX_RenderDeviceDriver;
20 19
21 #define FXDC_DEVICE_CLASS 1 20 #define FXDC_DEVICE_CLASS 1
22 #define FXDC_PIXEL_WIDTH 2 21 #define FXDC_PIXEL_WIDTH 2
23 #define FXDC_PIXEL_HEIGHT 3 22 #define FXDC_PIXEL_HEIGHT 3
24 #define FXDC_BITS_PIXEL 4 23 #define FXDC_BITS_PIXEL 4
25 #define FXDC_HORZ_SIZE 5 24 #define FXDC_HORZ_SIZE 5
26 #define FXDC_VERT_SIZE 6 25 #define FXDC_VERT_SIZE 6
27 #define FXDC_RENDER_CAPS 7 26 #define FXDC_RENDER_CAPS 7
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const CFX_Matrix* pMatrix, 200 const CFX_Matrix* pMatrix,
202 uint32_t flags, 201 uint32_t flags,
203 void*& handle, 202 void*& handle,
204 int blend_type); 203 int blend_type);
205 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); 204 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause);
206 void CancelDIBits(void* handle); 205 void CancelDIBits(void* handle);
207 206
208 FX_BOOL DrawNormalText(int nChars, 207 FX_BOOL DrawNormalText(int nChars,
209 const FXTEXT_CHARPOS* pCharPos, 208 const FXTEXT_CHARPOS* pCharPos,
210 CFX_Font* pFont, 209 CFX_Font* pFont,
211 CFX_FontCache* pCache,
212 FX_FLOAT font_size, 210 FX_FLOAT font_size,
213 const CFX_Matrix* pText2Device, 211 const CFX_Matrix* pText2Device,
214 uint32_t fill_color, 212 uint32_t fill_color,
215 uint32_t text_flags); 213 uint32_t text_flags);
216 FX_BOOL DrawTextPath(int nChars, 214 FX_BOOL DrawTextPath(int nChars,
217 const FXTEXT_CHARPOS* pCharPos, 215 const FXTEXT_CHARPOS* pCharPos,
218 CFX_Font* pFont, 216 CFX_Font* pFont,
219 CFX_FontCache* pCache,
220 FX_FLOAT font_size, 217 FX_FLOAT font_size,
221 const CFX_Matrix* pText2User, 218 const CFX_Matrix* pText2User,
222 const CFX_Matrix* pUser2Device, 219 const CFX_Matrix* pUser2Device,
223 const CFX_GraphStateData* pGraphState, 220 const CFX_GraphStateData* pGraphState,
224 uint32_t fill_color, 221 uint32_t fill_color,
225 uint32_t stroke_color, 222 uint32_t stroke_color,
226 CFX_PathData* pClippingPath, 223 CFX_PathData* pClippingPath,
227 int nFlag); 224 int nFlag);
228 225
229 #ifdef _SKIA_SUPPORT_ 226 #ifdef _SKIA_SUPPORT_
(...skipping 22 matching lines...) Expand all
252 int m_Width; 249 int m_Width;
253 int m_Height; 250 int m_Height;
254 int m_bpp; 251 int m_bpp;
255 int m_RenderCaps; 252 int m_RenderCaps;
256 int m_DeviceClass; 253 int m_DeviceClass;
257 FX_RECT m_ClipBox; 254 FX_RECT m_ClipBox;
258 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; 255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver;
259 }; 256 };
260 257
261 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ 258 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698