pdfium/core/fxcodec/progressive_decoder_context.cpp
Tom Sepez 5c8ffedbb6 Virtualize DecodeImage in ProgressiveDecoderContext
Add virtual DecodeImage(size_t frame_index) method to
ProgressiveDecoderContext. Override DecodeImage in CFX_BmpContext,
SkiaBmpContext, and CFX_GifContext. Update BmpContinueDecode and
GifContinueDecode in ProgressiveDecoder to call DecodeImage directly
on context_ instead of via static wrapper classes.

TAG=agy
CONV=7a82d35c-037e-4042-8882-448367a075e7

Change-Id: Iea8f46fd873bed74013664ca91dcd8a87df2a6ab
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/153290
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
2026-07-28 15:05:42 -07:00

26 lines
682 B
C++

// Copyright 2026 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fxcodec/progressive_decoder_context.h"
namespace fxcodec {
ProgressiveDecoderContext::~ProgressiveDecoderContext() = default;
FX_FILESIZE ProgressiveDecoderContext::GetAvailInput() const {
return 0;
}
void ProgressiveDecoderContext::Input(RetainPtr<CFX_CodecMemory> codec_memory) {
}
ProgressiveDecoderContext::Status ProgressiveDecoderContext::DecodeImage(
size_t frame_index) {
return Status::kError;
}
} // namespace fxcodec