diff options
author | tsepez <tsepez@chromium.org> | 2017-01-05 12:57:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-05 12:57:00 -0800 |
commit | e647799f6a2f7f747c9f55d9f0ce08dcdfbd53f4 (patch) | |
tree | 282c502bd9f807f385d0cbcc1692bb475c8a4df1 /xfa/fde/fde_gedevice.h | |
parent | 6bb3b894488fd6f38c096b708980a9f08286ac5c (diff) | |
download | pdfium-e647799f6a2f7f747c9f55d9f0ce08dcdfbd53f4.tar.xz |
Properly ref-count CFGAS_GEFont with CFX_RetainPtr.
We worry about cyclical references, but no leaks found.
Review-Url: https://codereview.chromium.org/2609423003
Diffstat (limited to 'xfa/fde/fde_gedevice.h')
-rw-r--r-- | xfa/fde/fde_gedevice.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fde/fde_gedevice.h b/xfa/fde/fde_gedevice.h index cb8e3fa42a..35efab2b2d 100644 --- a/xfa/fde/fde_gedevice.h +++ b/xfa/fde/fde_gedevice.h @@ -9,11 +9,11 @@ #include "core/fxge/cfx_renderdevice.h" #include "xfa/fgas/crt/fgas_memory.h" +#include "xfa/fgas/font/cfgas_gefont.h" class CFDE_Brush; class CFDE_Path; class CFDE_Pen; -class CFGAS_GEFont; class CFX_GraphStateData; class CFDE_RenderDevice : public CFX_Target { @@ -39,7 +39,7 @@ class CFDE_RenderDevice : public CFX_Target { const CFX_Matrix* pImgMatrix = nullptr, const CFX_Matrix* pDevMatrix = nullptr); bool DrawString(CFDE_Brush* pBrush, - CFGAS_GEFont* pFont, + const CFX_RetainPtr<CFGAS_GEFont>& pFont, const FXTEXT_CHARPOS* pCharPos, int32_t iCount, FX_FLOAT fFontSize, @@ -100,13 +100,13 @@ class CFDE_RenderDevice : public CFX_Target { const CFX_Matrix* pMatrix = nullptr); bool DrawSolidString(CFDE_Brush* pBrush, - CFGAS_GEFont* pFont, + const CFX_RetainPtr<CFGAS_GEFont>& pFont, const FXTEXT_CHARPOS* pCharPos, int32_t iCount, FX_FLOAT fFontSize, const CFX_Matrix* pMatrix); bool DrawStringPath(CFDE_Brush* pBrush, - CFGAS_GEFont* pFont, + const CFX_RetainPtr<CFGAS_GEFont>& pFont, const FXTEXT_CHARPOS* pCharPos, int32_t iCount, FX_FLOAT fFontSize, |