summaryrefslogtreecommitdiff
path: root/core/src/fxcodec/codec/codec_int.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-25 15:52:28 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-25 15:52:28 -0800
commita2c42ce6150c4072613a6fc9fa0dc064dbf0a15d (patch)
treeb1705df8ed8c9f2f8db5095fbb6e19548493eacd /core/src/fxcodec/codec/codec_int.h
parent214947de80a9be2ddb134b1962affc82e20563c9 (diff)
downloadpdfium-a2c42ce6150c4072613a6fc9fa0dc064dbf0a15d.tar.xz
Manual fixups to PDF_ENABLE_XFA in core/
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1477663003 .
Diffstat (limited to 'core/src/fxcodec/codec/codec_int.h')
-rw-r--r--core/src/fxcodec/codec/codec_int.h10
1 files changed, 6 insertions, 4 deletions
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();