File indexing completed on 2024-12-22 04:12:46
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_OPENGL_CANVAS_DEBUGGER_H 0008 #define __KIS_OPENGL_CANVAS_DEBUGGER_H 0009 0010 #include <QScopedPointer> 0011 #include <QObject> 0012 0013 0014 class KisOpenglCanvasDebugger : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 KisOpenglCanvasDebugger(); 0019 ~KisOpenglCanvasDebugger(); 0020 0021 static KisOpenglCanvasDebugger* instance(); 0022 0023 bool showFpsOnCanvas() const; 0024 0025 void notifyPaintRequested(); 0026 void notifySyncStatus(bool value); 0027 qreal accumulatedFps(); 0028 0029 private Q_SLOTS: 0030 void slotConfigChanged(); 0031 0032 private: 0033 struct Private; 0034 const QScopedPointer<Private> m_d; 0035 }; 0036 0037 #endif /* __KIS_OPENGL_CANVAS_DEBUGGER_H */