From a2c42ce6150c4072613a6fc9fa0dc064dbf0a15d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 25 Nov 2015 15:52:28 -0800 Subject: Manual fixups to PDF_ENABLE_XFA in core/ R=thestig@chromium.org Review URL: https://codereview.chromium.org/1477663003 . --- core/src/fxcodec/codec/codec_int.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'core/src/fxcodec/codec/codec_int.h') diff --git a/core/src/fxcodec/codec/codec_int.h b/core/src/fxcodec/codec/codec_int.h index 5abe2e4a6a..7d440d0b61 100644 --- a/core/src/fxcodec/codec/codec_int.h +++ b/core/src/fxcodec/codec/codec_int.h @@ -189,17 +189,18 @@ class CCodec_JpegModule : public ICodec_JpegModule { FX_DWORD src_size) override; #ifndef PDF_ENABLE_XFA int ReadHeader(void* pContext, int* width, int* height, int* nComps) override; -#else +#else // PDF_ENABLE_XFA int ReadHeader(void* pContext, int* width, int* height, int* nComps, CFX_DIBAttribute* pAttribute) override; -#endif +#endif // PDF_ENABLE_XFA int StartScanline(void* pContext, int down_scale) override; FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) override; FX_DWORD GetAvailInput(void* pContext, uint8_t** avail_buf_ptr) override; }; + #ifdef PDF_ENABLE_XFA #define PNG_ERROR_SIZE 256 class CCodec_PngModule : public ICodec_PngModule { @@ -263,7 +264,8 @@ class CCodec_BmpModule : public ICodec_BmpModule { protected: FX_CHAR m_szLastError[256]; }; -#endif +#endif // PDF_ENABLE_XFA + class CCodec_IccModule : public ICodec_IccModule { public: ~CCodec_IccModule() override; @@ -361,8 +363,8 @@ class CCodec_TiffModule : public ICodec_TiffModule { protected: ~CCodec_TiffModule() override {} }; +#endif // PDF_ENABLE_XFA -#endif class CCodec_Jbig2Context { public: CCodec_Jbig2Context(); -- cgit v1.2.3