File indexing completed on 2024-05-19 04:26:41
0001 /* 0002 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "KisBlockBackgroundFrameGenerationLock.h" 0008 0009 #include <kis_image_animation_interface.h> 0010 0011 KisBlockBackgroundFrameGenerationLockAdapter::KisBlockBackgroundFrameGenerationLockAdapter(KisImageAnimationInterface *interface) 0012 : m_interface(interface) 0013 { 0014 } 0015 0016 void KisBlockBackgroundFrameGenerationLockAdapter::lock() 0017 { 0018 m_interface->blockBackgroundFrameGeneration(); 0019 } 0020 0021 void KisBlockBackgroundFrameGenerationLockAdapter::unlock() 0022 { 0023 m_interface->unblockBackgroundFrameGeneration(); 0024 }