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

Side by Side Diff: core/fxge/skia/fx_skia_device.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 #ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ 5 #ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_
6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ 6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_
7 7
8 #if defined(_SKIA_SUPPORT_) 8 #if defined(_SKIA_SUPPORT_)
9 9
10 #include "core/fxge/include/cfx_pathdata.h" 10 #include "core/fxge/include/cfx_pathdata.h"
11 #include "core/fxge/include/ifx_renderdevicedriver.h" 11 #include "core/fxge/include/ifx_renderdevicedriver.h"
12 12
13 class CFX_FontCache;
14 class SkCanvas; 13 class SkCanvas;
15 class SkMatrix; 14 class SkMatrix;
16 class SkPaint; 15 class SkPaint;
17 class SkPath; 16 class SkPath;
18 class SkPictureRecorder; 17 class SkPictureRecorder;
19 class SkiaState; 18 class SkiaState;
20 struct FXTEXT_CHARPOS; 19 struct FXTEXT_CHARPOS;
21 struct SkIRect; 20 struct SkIRect;
22 21
23 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { 22 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 bool DrawBitsWithMask(const CFX_DIBSource* pBitmap, 115 bool DrawBitsWithMask(const CFX_DIBSource* pBitmap,
117 const CFX_DIBSource* pMask, 116 const CFX_DIBSource* pMask,
118 int bitmap_alpha, 117 int bitmap_alpha,
119 const CFX_Matrix* pMatrix, 118 const CFX_Matrix* pMatrix,
120 int blend_type); 119 int blend_type);
121 120
122 FX_BOOL DrawDeviceText(int nChars, 121 FX_BOOL DrawDeviceText(int nChars,
123 const FXTEXT_CHARPOS* pCharPos, 122 const FXTEXT_CHARPOS* pCharPos,
124 CFX_Font* pFont, 123 CFX_Font* pFont,
125 CFX_FontCache* pCache,
126 const CFX_Matrix* pObject2Device, 124 const CFX_Matrix* pObject2Device,
127 FX_FLOAT font_size, 125 FX_FLOAT font_size,
128 uint32_t color) override; 126 uint32_t color) override;
129 127
130 FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, 128 FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern,
131 const CFX_Matrix* pMatrix, 129 const CFX_Matrix* pMatrix,
132 const FX_RECT& clip_rect, 130 const FX_RECT& clip_rect,
133 int alpha, 131 int alpha,
134 FX_BOOL bAlphaMode) override; 132 FX_BOOL bAlphaMode) override;
135 133
(...skipping 16 matching lines...) Expand all
152 CFX_DIBitmap* m_pBitmap; 150 CFX_DIBitmap* m_pBitmap;
153 CFX_DIBitmap* m_pOriDevice; 151 CFX_DIBitmap* m_pOriDevice;
154 SkCanvas* m_pCanvas; 152 SkCanvas* m_pCanvas;
155 SkPictureRecorder* const m_pRecorder; 153 SkPictureRecorder* const m_pRecorder;
156 std::unique_ptr<SkiaState> m_pCache; 154 std::unique_ptr<SkiaState> m_pCache;
157 FX_BOOL m_bGroupKnockout; 155 FX_BOOL m_bGroupKnockout;
158 }; 156 };
159 #endif // defined(_SKIA_SUPPORT_) 157 #endif // defined(_SKIA_SUPPORT_)
160 158
161 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ 159 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698