diff options
Diffstat (limited to 'core/fxcodec/gif/cfx_gifcontext.h')
-rw-r--r-- | core/fxcodec/gif/cfx_gifcontext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/gif/cfx_gifcontext.h b/core/fxcodec/gif/cfx_gifcontext.h index f96cf058b2..90657b05bb 100644 --- a/core/fxcodec/gif/cfx_gifcontext.h +++ b/core/fxcodec/gif/cfx_gifcontext.h @@ -16,6 +16,7 @@ #include "core/fxcodec/gif/cfx_lzwdecompressor.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/unowned_ptr.h" +#include "third_party/base/span.h" class CFX_GifContext : public CCodec_GifModule::Context { public: @@ -40,7 +41,7 @@ class CFX_GifContext : public CCodec_GifModule::Context { CFX_GifDecodeStatus ReadHeader(); CFX_GifDecodeStatus GetFrame(); CFX_GifDecodeStatus LoadFrame(int32_t frame_num); - void SetInputBuffer(uint8_t* src_buf, uint32_t src_size); + void SetInputBuffer(pdfium::span<uint8_t> src_buf); uint32_t GetAvailInput(uint8_t** avail_buf) const; size_t GetFrameNum() const { return images_.size(); } |