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

Side by Side Diff: core/fxge/agg/fx_agg_driver.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 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_FXGE_AGG_FX_AGG_DRIVER_H_ 7 #ifndef CORE_FXGE_AGG_FX_AGG_DRIVER_H_
8 #define CORE_FXGE_AGG_FX_AGG_DRIVER_H_ 8 #define CORE_FXGE_AGG_FX_AGG_DRIVER_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fxge/include/ifx_renderdevicedriver.h" 13 #include "core/fxge/include/ifx_renderdevicedriver.h"
14 #include "third_party/agg23/agg_clip_liang_barsky.h" 14 #include "third_party/agg23/agg_clip_liang_barsky.h"
15 #include "third_party/agg23/agg_path_storage.h" 15 #include "third_party/agg23/agg_path_storage.h"
16 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" 16 #include "third_party/agg23/agg_rasterizer_scanline_aa.h"
17 17
18 class CFX_ClipRgn; 18 class CFX_ClipRgn;
19 class CFX_FontCache;
20 class CFX_GraphStateData; 19 class CFX_GraphStateData;
21 class CFX_Matrix; 20 class CFX_Matrix;
22 class CFX_PathData; 21 class CFX_PathData;
23 22
24 class CAgg_PathData { 23 class CAgg_PathData {
25 public: 24 public:
26 CAgg_PathData() {} 25 CAgg_PathData() {}
27 ~CAgg_PathData() {} 26 ~CAgg_PathData() {}
28 void BuildPath(const CFX_PathData* pPathData, 27 void BuildPath(const CFX_PathData* pPathData,
29 const CFX_Matrix* pObject2Device); 28 const CFX_Matrix* pObject2Device);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 uint32_t color, 85 uint32_t color,
87 const CFX_Matrix* pMatrix, 86 const CFX_Matrix* pMatrix,
88 uint32_t flags, 87 uint32_t flags,
89 void*& handle, 88 void*& handle,
90 int blend_type) override; 89 int blend_type) override;
91 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause) override; 90 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause) override;
92 void CancelDIBits(void* handle) override; 91 void CancelDIBits(void* handle) override;
93 FX_BOOL DrawDeviceText(int nChars, 92 FX_BOOL DrawDeviceText(int nChars,
94 const FXTEXT_CHARPOS* pCharPos, 93 const FXTEXT_CHARPOS* pCharPos,
95 CFX_Font* pFont, 94 CFX_Font* pFont,
96 CFX_FontCache* pCache,
97 const CFX_Matrix* pObject2Device, 95 const CFX_Matrix* pObject2Device,
98 FX_FLOAT font_size, 96 FX_FLOAT font_size,
99 uint32_t color) override; 97 uint32_t color) override;
100 int GetDriverType() const override; 98 int GetDriverType() const override;
101 99
102 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, 100 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer,
103 uint32_t color, 101 uint32_t color,
104 FX_BOOL bFullCover, 102 FX_BOOL bFullCover,
105 FX_BOOL bGroupKnockout, 103 FX_BOOL bGroupKnockout,
106 int alpha_flag, 104 int alpha_flag,
(...skipping 11 matching lines...) Expand all
118 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 116 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
119 void* m_pPlatformGraphics; 117 void* m_pPlatformGraphics;
120 #endif 118 #endif
121 int m_FillFlags; 119 int m_FillFlags;
122 FX_BOOL m_bRgbByteOrder; 120 FX_BOOL m_bRgbByteOrder;
123 CFX_DIBitmap* m_pOriDevice; 121 CFX_DIBitmap* m_pOriDevice;
124 FX_BOOL m_bGroupKnockout; 122 FX_BOOL m_bGroupKnockout;
125 }; 123 };
126 124
127 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ 125 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698