summaryrefslogtreecommitdiffstats
path: root/src/adaptationlayers/qsgeglfsthreadedtexturemanager.h
blob: 61caeb62d28b373cbecf1aa0cc4c99116fda6f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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