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