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: 2015 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KIS_CANVAS_UPDATES_COMPRESSOR_H
#define __KIS_CANVAS_UPDATES_COMPRESSOR_H
#include <QList>
#include <QMutex>
#include <QMutexLocker>
#include "kis_update_info.h"
typedef QList<KisUpdateInfoSP> KisUpdateInfoList;
class KisCanvasUpdatesCompressor
{
public:
bool putUpdateInfo(KisUpdateInfoSP info);
void takeUpdateInfo(KisUpdateInfoList &list);
private:
QMutex m_mutex;
KisUpdateInfoList m_updatesList;
};
#endif /* __KIS_CANVAS_UPDATES_COMPRESSOR_H */