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: 2017 Dmitry Kazakov <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISFAKERUNNABLESTROKEJOBSEXECUTOR_H
#define KISFAKERUNNABLESTROKEJOBSEXECUTOR_H
#include "KisRunnableStrokeJobsInterface.h"
class KRITAIMAGE_EXPORT KisFakeRunnableStrokeJobsExecutor : public KisRunnableStrokeJobsInterface
{
public:
/**
* Normally, barrier jobs are not allowed in the fake jobs executor,
* because we cannot guarantee that all the update jobs are finished
* on the scheduler, so their guarantee is kind of "broken".
* Passing `AllowBarrierJobs` flag explicitly disables this check,
* which passes responsibility for the broken guarantees to the caller.
*/
enum Flag {
None = 0x0,
AllowBarrierJobs = 0x1
};
Q_DECLARE_FLAGS(Flags, Flag)
public:
KisFakeRunnableStrokeJobsExecutor();
KisFakeRunnableStrokeJobsExecutor(Flags flags);
void addRunnableJobs(const QVector<KisRunnableStrokeJobDataBase*> &list) override;
private:
Flags m_flags;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(KisFakeRunnableStrokeJobsExecutor::Flags)
#endif // KISFAKERUNNABLESTROKEJOBSEXECUTOR_H