From 3e838a75ae5c0bb0e524f745df69e54a021fc5ec Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 9 Oct 2018 19:44:11 +0000 Subject: Pass CFX_CodecMemory in place of spans to codecs. Next step towards making CFX_CodecMemory own the memory it is ref-counting. Change-Id: I5922d80d13032c3ea028447c47d34a10234109a3 Reviewed-on: https://pdfium-review.googlesource.com/c/43630 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxcodec/codec/ccodec_gifmodule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/fxcodec/codec/ccodec_gifmodule.cpp') diff --git a/core/fxcodec/codec/ccodec_gifmodule.cpp b/core/fxcodec/codec/ccodec_gifmodule.cpp index 289993c903..4162171827 100644 --- a/core/fxcodec/codec/ccodec_gifmodule.cpp +++ b/core/fxcodec/codec/ccodec_gifmodule.cpp @@ -71,8 +71,9 @@ FX_FILESIZE CCodec_GifModule::GetAvailInput(Context* pContext) const { } bool CCodec_GifModule::Input(Context* pContext, - pdfium::span src_buf, + RetainPtr codec_memory, CFX_DIBAttribute*) { - static_cast(pContext)->SetInputBuffer(src_buf); + auto* ctx = static_cast(pContext); + ctx->SetInputBuffer(std::move(codec_memory)); return true; } -- cgit v1.2.3