summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_progressivedecoder.h
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-18 15:32:00 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-18 15:32:00 +0000
commit51344821bb8d1d3309bb1dd82972df26b75745e2 (patch)
treee5a966bdabf99bebc6afe8003170fb1719d276d1 /core/fxcodec/codec/ccodec_progressivedecoder.h
parent4d7a11b0819cc396245697c4e9bebb20737c59b2 (diff)
downloadpdfium-51344821bb8d1d3309bb1dd82972df26b75745e2.tar.xz
Move format specific elements out of ContinueDecode
Refactoring the big image format switch in ContinueDecode to call separate methods for each image format, instead of having one giant switch block. This should have no functional changes. BUG=pdfium:976 Change-Id: Ide4892526ee823023c233f0e43b1c98ac8bd1477 Reviewed-on: https://pdfium-review.googlesource.com/23134 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_progressivedecoder.h')
-rw-r--r--core/fxcodec/codec/ccodec_progressivedecoder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxcodec/codec/ccodec_progressivedecoder.h b/core/fxcodec/codec/ccodec_progressivedecoder.h
index de2cd3ced6..41e10e6dcf 100644
--- a/core/fxcodec/codec/ccodec_progressivedecoder.h
+++ b/core/fxcodec/codec/ccodec_progressivedecoder.h
@@ -195,6 +195,12 @@ class CCodec_ProgressiveDecoder : public CCodec_BmpModule::Delegate,
FXCODEC_STATUS GifStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
FXCODEC_STATUS BmpStartDecode(const RetainPtr<CFX_DIBitmap>& pDIBitmap);
+ FXCODEC_STATUS JpegContinueDecode();
+ FXCODEC_STATUS PngContinueDecode();
+ FXCODEC_STATUS GifContinueDecode();
+ FXCODEC_STATUS BmpContinueDecode();
+ FXCODEC_STATUS TifContinueDecode();
+
RetainPtr<IFX_SeekableReadStream> m_pFile;
RetainPtr<CFX_DIBitmap> m_pDeviceBitmap;
UnownedPtr<CCodec_ModuleMgr> m_pCodecMgr;