Serenity Operating System
at master 28 lines 516 B view raw
1/* 2 * Copyright (c) 2021-2022, Andreas Kling <kling@serenityos.org> 3 * Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com> 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 */ 7 8#include <LibWeb/Platform/ImageCodecPlugin.h> 9 10namespace Web::Platform { 11 12static ImageCodecPlugin* s_the; 13 14ImageCodecPlugin::~ImageCodecPlugin() = default; 15 16ImageCodecPlugin& ImageCodecPlugin::the() 17{ 18 VERIFY(s_the); 19 return *s_the; 20} 21 22void ImageCodecPlugin::install(ImageCodecPlugin& plugin) 23{ 24 VERIFY(!s_the); 25 s_the = &plugin; 26} 27 28}