OLD | NEW |
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 CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ | 7 #ifndef CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ |
8 #define CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ | 8 #define CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
11 | 11 |
12 #if _FX_OS_ == _FX_ANDROID_ | 12 #if _FX_OS_ == _FX_ANDROID_ |
13 | 13 |
14 #include "core/fxge/android/fpf_skiafontmgr.h" | 14 #include "core/fxge/android/fpf_skiafontmgr.h" |
15 | 15 |
16 class CFPF_SkiaFontMgr; | 16 class CFPF_SkiaFontMgr; |
17 | 17 |
18 class CFPF_SkiaDeviceModule { | 18 class CFPF_SkiaDeviceModule { |
19 public: | 19 public: |
20 CFPF_SkiaDeviceModule() : m_pFontMgr(nullptr) {} | 20 CFPF_SkiaDeviceModule() : m_pFontMgr(nullptr) {} |
21 ~CFPF_SkiaDeviceModule(); | 21 ~CFPF_SkiaDeviceModule(); |
22 | 22 |
23 void Destroy(); | 23 void Destroy(); |
24 CFPF_SkiaFontMgr* GetFontMgr(); | 24 CFPF_SkiaFontMgr* GetFontMgr(); |
25 | 25 |
26 protected: | 26 protected: |
27 CFPF_SkiaFontMgr* m_pFontMgr; | 27 CFPF_SkiaFontMgr* m_pFontMgr; |
28 }; | 28 }; |
29 | 29 |
30 CFPF_SkiaDeviceModule* CFPF_GetSkiaDeviceModule(); | 30 CFPF_SkiaDeviceModule* CFPF_GetSkiaDeviceModule(); |
31 | 31 |
32 #endif // _FX_OS_ == _FX_ANDROID_ | 32 #endif // _FX_OS_ == _FX_ANDROID_ |
33 | 33 |
34 #endif // CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ | 34 #endif // CORE_FXGE_ANDROID_FPF_SKIAMODULE_H_ |
OLD | NEW |