diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-05-09 20:31:12 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-09 20:31:12 +0000 |
commit | d5d48457dabbe71e7f6b0baf2eaea6aa0dc86736 (patch) | |
tree | 5694486d6c11a60a0ce602759c3c1e07c63b46fc /core/fxcodec/fx_codec_def.h | |
parent | 54ef2cb9eb5b145c6e973e95ccb488e121556ad7 (diff) | |
download | pdfium-d5d48457dabbe71e7f6b0baf2eaea6aa0dc86736.tar.xz |
Do not build PNG when codec is disabled
Currently all of the PNG related code is being built when support for
the codec is disabled, it just isn't being utilized. Depending on the
settings being used, this unneeded code may or may not get stripped
during linking.
This CL explicitly turns off building the PNG codec code if support
for PNG is turned off.
BUG=pdfium:1080
Change-Id: I9c5247145fcadbcb1bd2243aa83350304ba421ff
Reviewed-on: https://pdfium-review.googlesource.com/32270
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/fx_codec_def.h')
-rw-r--r-- | core/fxcodec/fx_codec_def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/fxcodec/fx_codec_def.h b/core/fxcodec/fx_codec_def.h index e4ac0437eb..b7944ee1c1 100644 --- a/core/fxcodec/fx_codec_def.h +++ b/core/fxcodec/fx_codec_def.h @@ -28,13 +28,16 @@ enum FXCODEC_IMAGE_TYPE { FXCODEC_IMAGE_UNKNOWN = 0, FXCODEC_IMAGE_BMP, FXCODEC_IMAGE_JPG, +#ifdef PDF_ENABLE_XFA_PNG FXCODEC_IMAGE_PNG, +#endif // PDF_ENABLE_XFA_PNG FXCODEC_IMAGE_GIF, #ifdef PDF_ENABLE_XFA_TIFF FXCODEC_IMAGE_TIFF, #endif // PDF_ENABLE_XFA_TIFF FXCODEC_IMAGE_MAX }; + enum FXCODEC_RESUNIT { FXCODEC_RESUNIT_NONE = 0, FXCODEC_RESUNIT_INCH, |