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_OPENGL_CANVAS_DEBUGGER_H
#define __KIS_OPENGL_CANVAS_DEBUGGER_H
#include <QScopedPointer>
#include <QObject>
class KisOpenglCanvasDebugger : public QObject
{
Q_OBJECT
public:
KisOpenglCanvasDebugger();
~KisOpenglCanvasDebugger();
static KisOpenglCanvasDebugger* instance();
bool showFpsOnCanvas() const;
void notifyPaintRequested();
void notifySyncStatus(bool value);
qreal accumulatedFps();
private Q_SLOTS:
void slotConfigChanged();
private:
struct Private;
const QScopedPointer<Private> m_d;
};
#endif /* __KIS_OPENGL_CANVAS_DEBUGGER_H */