From d801c9c9caddf3941f6844fab58b19261d7d3cad Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 13 Aug 2018 20:36:16 +0000 Subject: Implement CFX_CodecMemory. This class is much simpler than CFX_MemoryStream and does only what CFX_BmpDecompressor and CFX_GifContext needs. Swap out CFX_MemoryStream and remove CFX_MemoryStream::Seek(). BUG=pdfium:263 Change-Id: Ifd8ce4d2b6c9fedd6ec842d46f54fc8e654fbca7 Reviewed-on: https://pdfium-review.googlesource.com/39880 Commit-Queue: Lei Zhang Reviewed-by: Ryan Harrison --- core/fxcodec/gif/cfx_gifcontext.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/fxcodec/gif/cfx_gifcontext.h') diff --git a/core/fxcodec/gif/cfx_gifcontext.h b/core/fxcodec/gif/cfx_gifcontext.h index d9bcf4950d..f96cf058b2 100644 --- a/core/fxcodec/gif/cfx_gifcontext.h +++ b/core/fxcodec/gif/cfx_gifcontext.h @@ -11,9 +11,9 @@ #include #include "core/fxcodec/codec/ccodec_gifmodule.h" +#include "core/fxcodec/codec/cfx_codec_memory.h" #include "core/fxcodec/gif/cfx_gif.h" #include "core/fxcodec/gif/cfx_lzwdecompressor.h" -#include "core/fxcrt/cfx_memorystream.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/unowned_ptr.h" @@ -66,7 +66,8 @@ class CFX_GifContext : public CCodec_GifModule::Context { bool ReadData(uint8_t* dest, uint32_t size); CFX_GifDecodeStatus ReadGifSignature(); CFX_GifDecodeStatus ReadLogicalScreenDescriptor(); - RetainPtr input_buffer_; + + RetainPtr input_buffer_; private: void SaveDecodingStatus(int32_t status); -- cgit v1.2.3