finished hashing algorithm for cache

This commit is contained in:
itsmattkc
2019-09-02 19:51:31 +10:00
parent b563b9e783
commit e87ed9dd3d
12 changed files with 124 additions and 44 deletions
@@ -23,11 +23,14 @@
#include "rendererthreadbase.h"
class RendererProcessor;
class RendererProcessThread : public RendererThreadBase
{
Q_OBJECT
public:
RendererProcessThread(QOpenGLContext* share_ctx,
RendererProcessThread(RendererProcessor* parent,
QOpenGLContext* share_ctx,
const int& width,
const int& height,
const olive::PixelFormat& format,
@@ -35,6 +38,10 @@ public:
bool Queue(const NodeDependency &dep, bool wait);
const QByteArray& hash();
RenderTexturePtr texture();
protected:
virtual void ProcessLoop() override;
@@ -44,10 +51,16 @@ signals:
void FinishedPath();
private:
RendererProcessor* parent_;
NodeDependency path_;
rational time_;
QByteArray hash_;
RenderTexturePtr texture_;
};
using RendererProcessThreadPtr = std::shared_ptr<RendererProcessThread>;