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

Side by Side Diff: xfa/fgas/font/cfgas_gefont.h

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years 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 | « xfa/fgas/font/cfgas_fontmgr.cpp ('k') | xfa/fgas/font/cfgas_gefont.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 // 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 XFA_FGAS_FONT_CFGAS_GEFONT_H_ 7 #ifndef XFA_FGAS_FONT_CFGAS_GEFONT_H_
8 #define XFA_FGAS_FONT_CFGAS_GEFONT_H_ 8 #define XFA_FGAS_FONT_CFGAS_GEFONT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 91 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
92 bool m_bUseLogFontStyle; 92 bool m_bUseLogFontStyle;
93 uint32_t m_dwLogFontStyle; 93 uint32_t m_dwLogFontStyle;
94 #endif 94 #endif
95 CFX_Font* m_pFont; 95 CFX_Font* m_pFont;
96 CFGAS_GEFont* const m_pSrcFont; 96 CFGAS_GEFont* const m_pSrcFont;
97 CFGAS_FontMgr* const m_pFontMgr; 97 CFGAS_FontMgr* const m_pFontMgr;
98 int32_t m_iRefCount; 98 int32_t m_iRefCount;
99 bool m_bExternalFont; 99 bool m_bExternalFont;
100 std::unique_ptr<IFGAS_Stream, ReleaseDeleter<IFGAS_Stream>> m_pStream; 100 std::unique_ptr<IFGAS_Stream, ReleaseDeleter<IFGAS_Stream>> m_pStream;
101 std::unique_ptr<IFX_SeekableReadStream, 101 CFX_RetainPtr<IFX_SeekableReadStream> m_pFileRead;
102 ReleaseDeleter<IFX_SeekableReadStream>>
103 m_pFileRead;
104 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; 102 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding;
105 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; 103 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap;
106 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; 104 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray;
107 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap; 105 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap;
108 CXFA_PDFFontMgr* m_pProvider; // not owned. 106 CXFA_PDFFontMgr* m_pProvider; // not owned.
109 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; 107 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts;
110 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; 108 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper;
111 }; 109 };
112 110
113 #endif // XFA_FGAS_FONT_CFGAS_GEFONT_H_ 111 #endif // XFA_FGAS_FONT_CFGAS_GEFONT_H_
OLDNEW
« no previous file with comments | « xfa/fgas/font/cfgas_fontmgr.cpp ('k') | xfa/fgas/font/cfgas_gefont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698