From 4d7a11b0819cc396245697c4e9bebb20737c59b2 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 17 Jan 2018 22:09:47 +0000 Subject: Move format specific elements out of StartDecode Refactoring the big image format switch in StartDecode 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: I4e609ecaec0c5d0e173957c0795555b37c38f9a2 Reviewed-on: https://pdfium-review.googlesource.com/23131 Commit-Queue: Ryan Harrison Reviewed-by: dsinclair --- core/fxcodec/codec/ccodec_progressivedecoder.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/fxcodec/codec/ccodec_progressivedecoder.h') diff --git a/core/fxcodec/codec/ccodec_progressivedecoder.h b/core/fxcodec/codec/ccodec_progressivedecoder.h index 83ccce2f6c..de2cd3ced6 100644 --- a/core/fxcodec/codec/ccodec_progressivedecoder.h +++ b/core/fxcodec/codec/ccodec_progressivedecoder.h @@ -190,6 +190,11 @@ class CCodec_ProgressiveDecoder : public CCodec_BmpModule::Delegate, double scale_y, int des_row); + FXCODEC_STATUS JpegStartDecode(const RetainPtr& pDIBitmap); + FXCODEC_STATUS PngStartDecode(const RetainPtr& pDIBitmap); + FXCODEC_STATUS GifStartDecode(const RetainPtr& pDIBitmap); + FXCODEC_STATUS BmpStartDecode(const RetainPtr& pDIBitmap); + RetainPtr m_pFile; RetainPtr m_pDeviceBitmap; UnownedPtr m_pCodecMgr; -- cgit v1.2.3