kumarashishg | 826308d | 2023-06-23 13:21:22 +0000 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace fxcodec { |
| 13 | |
| 14 | // static |
| 15 | GifProgressiveDecoder* GifProgressiveDecoder::GetInstance() { |
| 16 | static pdfium::base::NoDestructor<GifProgressiveDecoder> s; |
| 17 | return s.get(); |
| 18 | } |
| 19 | |
| 20 | GifProgressiveDecoder::GifProgressiveDecoder() = default; |
| 21 | |
| 22 | GifProgressiveDecoder::~GifProgressiveDecoder() = default; |
| 23 | |
| 24 | FX_FILESIZE GifProgressiveDecoder::GetAvailInput(Context* context) const { |
| 25 | return GifDecoder::GetAvailInput(context); |
| 26 | } |
| 27 | |
| 28 | bool GifProgressiveDecoder::Input(Context* context, |
| 29 | RetainPtr<CFX_CodecMemory> codec_memory) { |
| 30 | return GifDecoder::Input(context, codec_memory); |
| 31 | } |
| 32 | |
| 33 | } // namespace fxcodec |