Cleanup and fixed implementation of clone and render sources.

This commit is contained in:
brunoherbelin
2020-05-23 11:29:27 +02:00
parent 0eb31c7adc
commit 781023a93d
14 changed files with 477 additions and 152 deletions

View File

@@ -12,8 +12,9 @@ public:
// implementation of source API
void render() override;
void accept (Visitor& v) override;
bool failed() const override;
uint texture() const override;
void accept (Visitor& v) override;
// Session Source specific interface
void load(const std::string &p);
@@ -34,4 +35,25 @@ protected:
std::atomic<bool> loadFailed_;
std::atomic<bool> loadFinished_;
};
class RenderSource : public Source
{
public:
RenderSource();
~RenderSource();
// implementation of source API
void render() override;
bool failed() const override;
uint texture() const override;
void accept (Visitor& v) override;
protected:
void init() override;
Surface *sessionsurface_;
};
#endif // SESSIONSOURCE_H