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

Side by Side Diff: core/fxge/include/ifx_renderdevicedriver.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_IFX_RENDERDEVICEDRIVER_H_ 7 #ifndef CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_
8 #define CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ 8 #define CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
11 11
12 class CFX_DIBitmap; 12 class CFX_DIBitmap;
13 class CFX_DIBSource; 13 class CFX_DIBSource;
14 class CFX_Font; 14 class CFX_Font;
15 class CFX_FontCache;
16 class CFX_GraphStateData; 15 class CFX_GraphStateData;
17 class CFX_Matrix; 16 class CFX_Matrix;
18 class CFX_PathData; 17 class CFX_PathData;
19 class CPDF_ShadingPattern; 18 class CPDF_ShadingPattern;
20 class IFX_Pause; 19 class IFX_Pause;
21 struct FXTEXT_CHARPOS; 20 struct FXTEXT_CHARPOS;
22 struct FX_RECT; 21 struct FX_RECT;
23 22
24 class IFX_RenderDeviceDriver { 23 class IFX_RenderDeviceDriver {
25 public: 24 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 uint32_t color, 79 uint32_t color,
81 const CFX_Matrix* pMatrix, 80 const CFX_Matrix* pMatrix,
82 uint32_t flags, 81 uint32_t flags,
83 void*& handle, 82 void*& handle,
84 int blend_type) = 0; 83 int blend_type) = 0;
85 virtual FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); 84 virtual FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause);
86 virtual void CancelDIBits(void* handle); 85 virtual void CancelDIBits(void* handle);
87 virtual FX_BOOL DrawDeviceText(int nChars, 86 virtual FX_BOOL DrawDeviceText(int nChars,
88 const FXTEXT_CHARPOS* pCharPos, 87 const FXTEXT_CHARPOS* pCharPos,
89 CFX_Font* pFont, 88 CFX_Font* pFont,
90 CFX_FontCache* pCache,
91 const CFX_Matrix* pObject2Device, 89 const CFX_Matrix* pObject2Device,
92 FX_FLOAT font_size, 90 FX_FLOAT font_size,
93 uint32_t color); 91 uint32_t color);
94 virtual void* GetPlatformSurface() const; 92 virtual void* GetPlatformSurface() const;
95 virtual int GetDriverType() const; 93 virtual int GetDriverType() const;
96 virtual void ClearDriver(); 94 virtual void ClearDriver();
97 virtual FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, 95 virtual FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern,
98 const CFX_Matrix* pMatrix, 96 const CFX_Matrix* pMatrix,
99 const FX_RECT& clip_rect, 97 const FX_RECT& clip_rect,
100 int alpha, 98 int alpha,
101 FX_BOOL bAlphaMode); 99 FX_BOOL bAlphaMode);
102 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, 100 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap,
103 const CFX_DIBSource* pMask, 101 const CFX_DIBSource* pMask,
104 int left, 102 int left,
105 int top, 103 int top,
106 int bitmap_alpha, 104 int bitmap_alpha,
107 int blend_type); 105 int blend_type);
108 }; 106 };
109 107
110 #endif // CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ 108 #endif // CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698