finished hashing algorithm for cache
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user