Krita Source Code Documentation
Loading...
Searching...
No Matches
KisFrameDisplayProxy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Eoin O'Neill <eoinoneill1991@gmail.com>
3 * SPDX-FileCopyrightText: 2022 Emmet O'Neill <emmetoneill.pdx@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISFRAMEDISPLAYPROXY_H
9#define KISFRAMEDISPLAYPROXY_H
10
11#include <QObject>
12
13#include "kritaui_export.h"
14
16
21class KRITAUI_EXPORT KisFrameDisplayProxy : public QObject
22{
23 Q_OBJECT
24public:
25 KisFrameDisplayProxy(class KisCanvas2 *canvas, QObject *parent = nullptr);
27
32 bool displayFrame(int frame, bool forceReproject);
33
40 int activeFrame() const;
41
42Q_SIGNALS:
45
52
53private:
58 int activeKeyframe() const;
59
60 bool shouldUploadFrame(KisAnimationFrameCacheSP cache, int from, int to);
61 bool needsReprojection(KisAnimationFrameCacheSP cache, int from, int to);
62
63 QScopedPointer<struct Private> m_d;
64};
65
66#endif // KISFRAMEDISPLAYPROXY_H
The KisFrameDisplayProxy class sits between the KisCanvas (within its KisCanvasAnimationState) and it...
void sigFrameRefreshSkipped()
sigFrameRefreshSkipped tracks whether asynchronous "slow" refreshes are skipped due to the frame bein...
QScopedPointer< struct Private > m_d
void sigFrameDisplayRefreshed()