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

Side by Side Diff: core/fxge/skia/fx_skia_device.h

Issue 2350763002: Revert of Pdfium: Fix fonts leaking on ClosePage. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: 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
« no previous file with comments | « core/fxge/include/ifx_renderdevicedriver.h ('k') | core/fxge/skia/fx_skia_device.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
13 class SkCanvas; 14 class SkCanvas;
14 class SkMatrix; 15 class SkMatrix;
15 class SkPaint; 16 class SkPaint;
16 class SkPath; 17 class SkPath;
17 class SkPictureRecorder; 18 class SkPictureRecorder;
18 class SkiaState; 19 class SkiaState;
19 struct FXTEXT_CHARPOS; 20 struct FXTEXT_CHARPOS;
20 struct SkIRect; 21 struct SkIRect;
21 22
22 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { 23 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 bool DrawBitsWithMask(const CFX_DIBSource* pBitmap, 116 bool DrawBitsWithMask(const CFX_DIBSource* pBitmap,
116 const CFX_DIBSource* pMask, 117 const CFX_DIBSource* pMask,
117 int bitmap_alpha, 118 int bitmap_alpha,
118 const CFX_Matrix* pMatrix, 119 const CFX_Matrix* pMatrix,
119 int blend_type); 120 int blend_type);
120 121
121 FX_BOOL DrawDeviceText(int nChars, 122 FX_BOOL DrawDeviceText(int nChars,
122 const FXTEXT_CHARPOS* pCharPos, 123 const FXTEXT_CHARPOS* pCharPos,
123 CFX_Font* pFont, 124 CFX_Font* pFont,
125 CFX_FontCache* pCache,
124 const CFX_Matrix* pObject2Device, 126 const CFX_Matrix* pObject2Device,
125 FX_FLOAT font_size, 127 FX_FLOAT font_size,
126 uint32_t color) override; 128 uint32_t color) override;
127 129
128 FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, 130 FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern,
129 const CFX_Matrix* pMatrix, 131 const CFX_Matrix* pMatrix,
130 const FX_RECT& clip_rect, 132 const FX_RECT& clip_rect,
131 int alpha, 133 int alpha,
132 FX_BOOL bAlphaMode) override; 134 FX_BOOL bAlphaMode) override;
133 135
(...skipping 16 matching lines...) Expand all
150 CFX_DIBitmap* m_pBitmap; 152 CFX_DIBitmap* m_pBitmap;
151 CFX_DIBitmap* m_pOriDevice; 153 CFX_DIBitmap* m_pOriDevice;
152 SkCanvas* m_pCanvas; 154 SkCanvas* m_pCanvas;
153 SkPictureRecorder* const m_pRecorder; 155 SkPictureRecorder* const m_pRecorder;
154 std::unique_ptr<SkiaState> m_pCache; 156 std::unique_ptr<SkiaState> m_pCache;
155 FX_BOOL m_bGroupKnockout; 157 FX_BOOL m_bGroupKnockout;
156 }; 158 };
157 #endif // defined(_SKIA_SUPPORT_) 159 #endif // defined(_SKIA_SUPPORT_)
158 160
159 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ 161 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_
OLDNEW
« no previous file with comments | « core/fxge/include/ifx_renderdevicedriver.h ('k') | core/fxge/skia/fx_skia_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698