blob: 775ef789e95e6727f8635b5ff551e9536f651cb5 [file] [log] [blame]
// Copyright 2020 PDFium Authors. All rights reserved.
// 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/gif/gif_progressive_decoder.h"
#include "core/fxcodec/cfx_codec_memory.h"
#include "core/fxcodec/gif/gifmodule.h"
namespace fxcodec {
// static
GifProgressiveDecoder* GifProgressiveDecoder::GetInstance() {
static pdfium::base::NoDestructor<GifProgressiveDecoder> s;
return s.get();
}
GifProgressiveDecoder::GifProgressiveDecoder() = default;
GifProgressiveDecoder::~GifProgressiveDecoder() = default;
FX_FILESIZE GifProgressiveDecoder::GetAvailInput(Context* context) const {
return GifModule::GetAvailInput(context);
}
bool GifProgressiveDecoder::Input(Context* context,
RetainPtr<CFX_CodecMemory> codec_memory,
CFX_DIBAttribute* pAttribute) {
return GifModule::Input(context, codec_memory, pAttribute);
}
} // namespace fxcodec