Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAsyncStoryboardThumbnailRenderer.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Saurabh Kumar <saurabhk660@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
9#include "kis_image.h"
10
19
23
24void KisAsyncStoryboardThumbnailRenderer::frameCompletedCallback(int frameTime, const KisRegion &/*requestedRegion*/)
25{
26 KisImageSP image = requestedImage();
28
29 if (requestedFrame) {
30 Q_EMIT sigNotifyFrameCompleted(frameTime);
31 Q_EMIT sigNotifyFrameCompleted(frameTime, requestedFrame);
32 } else {
34 }
35}
36
38{
39 Q_EMIT sigNotifyFrameCancelled(frame, cancelReason);
40}
41
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void sigNotifyFrameCancelled(int frame, KisAsyncAnimationRendererBase::CancelReason cancelReason)
void sigNotifyFrameCompleted(int frameTime, KisPaintDeviceSP frameContents)
void frameCompletedCallback(int frame, const KisRegion &requestedRegion) override
frameCompletedCallback is called by the renderer when a new frame becomes ready
void frameCancelledCallback(int frame, CancelReason cancelReason) override
frameCancelledCallback is called when the rendering of the frame was cancelled.
KisPaintDeviceSP projection() const
void notifyFrameCancelled(int frame, KisAsyncAnimationRendererBase::CancelReason cancelReason)
virtual void clearFrameRegenerationState(bool isCancelled)