diff options
Diffstat (limited to 'src/adaptationlayers/qsgpartialuploadtexturemanager.h')
-rw-r--r-- | src/adaptationlayers/qsgpartialuploadtexturemanager.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/adaptationlayers/qsgpartialuploadtexturemanager.h b/src/adaptationlayers/qsgpartialuploadtexturemanager.h new file mode 100644 index 0000000..c9f7773 --- /dev/null +++ b/src/adaptationlayers/qsgpartialuploadtexturemanager.h @@ -0,0 +1,21 @@ +#ifndef QSGPARTIALUPLOADTEXTUREMANAGER_H +#define QSGPARTIALUPLOADTEXTUREMANAGER_H + +#include "qsgtexturemanager.h" + +class QSGPartialUploadTextureManager : public QSGTextureManager +{ +public: + QSGPartialUploadTextureManager(); + + void setContext(QSGContext *context); + + QSGTextureRef requestUpload(const QImage &image, const QObject *listener, const char *slot); + +protected: + void timerEvent(QTimerEvent *); + void processAsyncTextures(); + +}; + +#endif // QSGPARTIALUPLOADTEXTUREMANAGER_H |