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

Side by Side Diff: core/fxge/android/cfpf_skiafilefont.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 | « core/fxcrt/xml_int.h ('k') | core/fxge/android/cfpf_skiafontmgr.h » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_CFPF_SKIAFILEFONT_H_ 7 #ifndef CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_
8 #define CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_ 8 #define CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_
9 9
10 #include "core/fxcrt/cfx_retain_ptr.h"
10 #include "core/fxge/android/cfpf_skiafontdescriptor.h" 11 #include "core/fxge/android/cfpf_skiafontdescriptor.h"
11 12
12 class IFX_SeekableReadStream; 13 class IFX_SeekableReadStream;
13 14
14 #define FPF_SKIAFONTTYPE_File 2 15 #define FPF_SKIAFONTTYPE_File 2
15 16
16 class CFPF_SkiaFileFont : public CFPF_SkiaFontDescriptor { 17 class CFPF_SkiaFileFont : public CFPF_SkiaFontDescriptor {
17 public: 18 public:
18 CFPF_SkiaFileFont() : m_pFile(nullptr) {} 19 CFPF_SkiaFileFont() {}
19 20
20 // CFPF_SkiaFontDescriptor 21 // CFPF_SkiaFontDescriptor
21 int32_t GetType() const override { return FPF_SKIAFONTTYPE_File; } 22 int32_t GetType() const override { return FPF_SKIAFONTTYPE_File; }
22 IFX_SeekableReadStream* m_pFile; 23
24 CFX_RetainPtr<IFX_SeekableReadStream> m_pFile;
23 }; 25 };
24 26
25 #endif // CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_ 27 #endif // CORE_FXGE_ANDROID_CFPF_SKIAFILEFONT_H_
OLDNEW
« no previous file with comments | « core/fxcrt/xml_int.h ('k') | core/fxge/android/cfpf_skiafontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698