summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_jpegmodule.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-09 19:44:11 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-09 19:44:11 +0000
commit3e838a75ae5c0bb0e524f745df69e54a021fc5ec (patch)
tree92d389fbba456469c14e75d7723493dc85603b81 /core/fxcodec/codec/ccodec_jpegmodule.cpp
parent78606af0550f34a41d262e0a01381f48b7dfe197 (diff)
downloadpdfium-3e838a75ae5c0bb0e524f745df69e54a021fc5ec.tar.xz
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 <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_jpegmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_jpegmodule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_jpegmodule.cpp b/core/fxcodec/codec/ccodec_jpegmodule.cpp
index 7c15aa35a0..4a6059ad18 100644
--- a/core/fxcodec/codec/ccodec_jpegmodule.cpp
+++ b/core/fxcodec/codec/ccodec_jpegmodule.cpp
@@ -413,8 +413,9 @@ std::unique_ptr<CodecModuleIface::Context> CCodec_JpegModule::Start() {
}
bool CCodec_JpegModule::Input(Context* pContext,
- pdfium::span<uint8_t> src_buf,
+ RetainPtr<CFX_CodecMemory> codec_memory,
CFX_DIBAttribute*) {
+ pdfium::span<uint8_t> src_buf = codec_memory->GetSpan();
auto* ctx = static_cast<CJpegContext*>(pContext);
if (ctx->m_SkipSize) {
if (ctx->m_SkipSize > src_buf.size()) {