Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2023 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "KisBlockBackgroundFrameGenerationLock.h"
#include <kis_image_animation_interface.h>
KisBlockBackgroundFrameGenerationLockAdapter::KisBlockBackgroundFrameGenerationLockAdapter(KisImageAnimationInterface *interface)
: m_interface(interface)
{
}
void KisBlockBackgroundFrameGenerationLockAdapter::lock()
{
m_interface->blockBackgroundFrameGeneration();
}
void KisBlockBackgroundFrameGenerationLockAdapter::unlock()
{
m_interface->unblockBackgroundFrameGeneration();
}