diff options
Diffstat (limited to 'src/adaptationlayers/qsgeglfsthreadedtexturemanager.h')
-rw-r--r-- | src/adaptationlayers/qsgeglfsthreadedtexturemanager.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/adaptationlayers/qsgeglfsthreadedtexturemanager.h b/src/adaptationlayers/qsgeglfsthreadedtexturemanager.h new file mode 100644 index 0000000..61caeb6 --- /dev/null +++ b/src/adaptationlayers/qsgeglfsthreadedtexturemanager.h @@ -0,0 +1,23 @@ +#ifndef QSGEGLFSTHREADEDTEXTUREMANAGER_H +#define QSGEGLFSTHREADEDTEXTUREMANAGER_H + +#include "threadedtexturemanager.h" + +class QSGEglFSThreadedTextureManagerPrivate; + +class QSGEglFSThreadedTextureManager : public QSGThreadedTextureManager +{ +public: + QSGEglFSThreadedTextureManager(); + + void initializeThreadContext(); + void makeThreadContextCurrent(); + void uploadInThread(TextureReference *texture, const QImage &image, UploadHints hints); + + void setUploadsScanlines(bool); + bool uploadsScanlines() const; + +private: + QSGEglFSThreadedTextureManagerPrivate *d; +}; +#endif // QSGEGLFSTHREADEDTEXTUREMANAGER_H |