/* * Copyright (c) 2021-2022, Andreas Kling * Copyright (c) 2022, Dex♪ * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::Platform { static ImageCodecPlugin* s_the; ImageCodecPlugin::~ImageCodecPlugin() = default; ImageCodecPlugin& ImageCodecPlugin::the() { VERIFY(s_the); return *s_the; } void ImageCodecPlugin::install(ImageCodecPlugin& plugin) { VERIFY(!s_the); s_the = &plugin; } }