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 #include "core/fxcrt/include/fx_system.h" | 7 #include "core/fxcrt/fx_system.h" |
8 | 8 |
9 #if _FX_OS_ == _FX_ANDROID_ | 9 #if _FX_OS_ == _FX_ANDROID_ |
10 | 10 |
11 #include "core/fxge/android/fpf_skiafontmgr.h" | 11 #include "core/fxge/android/fpf_skiafontmgr.h" |
12 #include "core/fxge/android/fpf_skiamodule.h" | 12 #include "core/fxge/android/fpf_skiamodule.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 CFPF_SkiaDeviceModule* gs_pPFModule = nullptr; | 16 CFPF_SkiaDeviceModule* gs_pPFModule = nullptr; |
17 | 17 |
(...skipping 19 matching lines...) Expand all Loading... |
37 m_pFontMgr = new CFPF_SkiaFontMgr; | 37 m_pFontMgr = new CFPF_SkiaFontMgr; |
38 if (!m_pFontMgr->InitFTLibrary()) { | 38 if (!m_pFontMgr->InitFTLibrary()) { |
39 delete m_pFontMgr; | 39 delete m_pFontMgr; |
40 return nullptr; | 40 return nullptr; |
41 } | 41 } |
42 } | 42 } |
43 return m_pFontMgr; | 43 return m_pFontMgr; |
44 } | 44 } |
45 | 45 |
46 #endif // _FX_OS_ == _FX_ANDROID_ | 46 #endif // _FX_OS_ == _FX_ANDROID_ |
OLD | NEW |