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/fpdfapi/include/cpdf_modulemgr.h" | 7 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
8 | 8 |
9 #include "core/fpdfapi/ipdf_rendermodule.h" | 9 #include "core/fpdfapi/ipdf_rendermodule.h" |
10 #include "core/include/fxcodec/fx_codec.h" | 10 #include "core/fxcodec/include/fx_codec.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 CPDF_ModuleMgr* g_FPDFAPI_pDefaultMgr = nullptr; | 14 CPDF_ModuleMgr* g_FPDFAPI_pDefaultMgr = nullptr; |
15 | 15 |
16 } // namespace | 16 } // namespace |
17 | 17 |
18 // static | 18 // static |
19 CPDF_ModuleMgr* CPDF_ModuleMgr::Get() { | 19 CPDF_ModuleMgr* CPDF_ModuleMgr::Get() { |
20 return g_FPDFAPI_pDefaultMgr; | 20 return g_FPDFAPI_pDefaultMgr; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 ICodec_Jbig2Module* CPDF_ModuleMgr::GetJbig2Module() { | 56 ICodec_Jbig2Module* CPDF_ModuleMgr::GetJbig2Module() { |
57 return m_pCodecModule ? m_pCodecModule->GetJbig2Module() : NULL; | 57 return m_pCodecModule ? m_pCodecModule->GetJbig2Module() : NULL; |
58 } | 58 } |
59 ICodec_IccModule* CPDF_ModuleMgr::GetIccModule() { | 59 ICodec_IccModule* CPDF_ModuleMgr::GetIccModule() { |
60 return m_pCodecModule ? m_pCodecModule->GetIccModule() : NULL; | 60 return m_pCodecModule ? m_pCodecModule->GetIccModule() : NULL; |
61 } | 61 } |
62 ICodec_FlateModule* CPDF_ModuleMgr::GetFlateModule() { | 62 ICodec_FlateModule* CPDF_ModuleMgr::GetFlateModule() { |
63 return m_pCodecModule ? m_pCodecModule->GetFlateModule() : NULL; | 63 return m_pCodecModule ? m_pCodecModule->GetFlateModule() : NULL; |
64 } | 64 } |
OLD | NEW |