blob: 78c6a8cd2431e83ab4401e323c6408aec9a7ab96 [file] [log] [blame]
kumarashishg826308d2023-06-23 13:21:22 +00001// Copyright 2020 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "core/fxcodec/gif/gif_progressive_decoder.h"
8
9#include "core/fxcodec/cfx_codec_memory.h"
10#include "core/fxcodec/gif/gif_decoder.h"
11
12namespace fxcodec {
13
14// static
15GifProgressiveDecoder* GifProgressiveDecoder::GetInstance() {
16 static pdfium::base::NoDestructor<GifProgressiveDecoder> s;
17 return s.get();
18}
19
20GifProgressiveDecoder::GifProgressiveDecoder() = default;
21
22GifProgressiveDecoder::~GifProgressiveDecoder() = default;
23
24FX_FILESIZE GifProgressiveDecoder::GetAvailInput(Context* context) const {
25 return GifDecoder::GetAvailInput(context);
26}
27
28bool GifProgressiveDecoder::Input(Context* context,
29 RetainPtr<CFX_CodecMemory> codec_memory) {
30 return GifDecoder::Input(context, codec_memory);
31}
32
33} // namespace fxcodec