render: improved overall flow

This commit is contained in:
itsmattkc
2022-05-16 15:41:50 -07:00
parent bfd6a407a5
commit 23973699b4
8 changed files with 62 additions and 47 deletions
+1
View File
@@ -260,6 +260,7 @@ NodeValueTable NodeTraverser::ProcessInput(const Node* node, const QString& inpu
NodeTraverser::NodeTraverser() :
cancel_(nullptr),
heard_cancel_(false),
transform_(nullptr)
{
}
+9 -2
View File
@@ -128,11 +128,17 @@ protected:
QVector2D GenerateResolution() const;
bool IsCancelled() const
bool IsCancelled()
{
return cancel_ && *cancel_;
bool c = cancel_ && *cancel_;
if (c) {
heard_cancel_ = true;
}
return c;
}
bool HeardCancel() const { return heard_cancel_; }
const QAtomicInt *GetCancelPointer() const
{
return cancel_;
@@ -155,6 +161,7 @@ private:
AudioParams audio_params_;
const QAtomicInt *cancel_;
bool heard_cancel_;
const Node *transform_start_;
const Node *transform_now_;