From 7acd8268491ba9724b245b5dc594c8a4deeca9ee Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 19 Sep 2017 14:34:37 -0700 Subject: Forward declare codec modules in fx_codec.h. Change-Id: I020b862619f3f93f71dbb027b9e799d78744f686 Reviewed-on: https://pdfium-review.googlesource.com/14391 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcodec/codec/fx_codec.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'core/fxcodec/codec/fx_codec.cpp') diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp index 6bcea4b48e..4d094e54fb 100644 --- a/core/fxcodec/codec/fx_codec.cpp +++ b/core/fxcodec/codec/fx_codec.cpp @@ -12,6 +12,13 @@ #include #include +#include "core/fxcodec/codec/ccodec_basicmodule.h" +#include "core/fxcodec/codec/ccodec_faxmodule.h" +#include "core/fxcodec/codec/ccodec_flatemodule.h" +#include "core/fxcodec/codec/ccodec_iccmodule.h" +#include "core/fxcodec/codec/ccodec_jbig2module.h" +#include "core/fxcodec/codec/ccodec_jpegmodule.h" +#include "core/fxcodec/codec/ccodec_jpxmodule.h" #include "core/fxcodec/codec/ccodec_scanlinedecoder.h" #include "core/fxcodec/codec/codec_int.h" #include "core/fxcrt/fx_extension.h" @@ -19,6 +26,13 @@ #include "third_party/base/logging.h" #include "third_party/base/ptr_util.h" +#ifdef PDF_ENABLE_XFA +#include "core/fxcodec/codec/ccodec_bmpmodule.h" +#include "core/fxcodec/codec/ccodec_gifmodule.h" +#include "core/fxcodec/codec/ccodec_pngmodule.h" +#include "core/fxcodec/codec/ccodec_tiffmodule.h" +#endif // PDF_ENABLE_XFA + namespace { const uint8_t g_CMYK[81 * 81 * 3] = { @@ -1350,6 +1364,25 @@ CCodec_ModuleMgr::CCodec_ModuleMgr() CCodec_ModuleMgr::~CCodec_ModuleMgr() {} +#ifdef PDF_ENABLE_XFA +void CCodec_ModuleMgr::SetBmpModule(std::unique_ptr module) { + m_pBmpModule = std::move(module); +} + +void CCodec_ModuleMgr::SetGifModule(std::unique_ptr module) { + m_pGifModule = std::move(module); +} + +void CCodec_ModuleMgr::SetPngModule(std::unique_ptr module) { + m_pPngModule = std::move(module); +} + +void CCodec_ModuleMgr::SetTiffModule( + std::unique_ptr module) { + m_pTiffModule = std::move(module); +} +#endif // PDF_ENABLE_XFA + bool CCodec_BasicModule::RunLengthEncode(const uint8_t* src_buf, uint32_t src_size, uint8_t** dest_buf, -- cgit v1.2.3