diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-05-23 15:07:42 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-05-26 13:53:56 +0200 |
commit | 22095133d2af68f78d6905f215035f02a8933e68 (patch) | |
tree | 6e4c84783f722c7579aeb0e574de76249ad4e0c6 /customcontext/context.h | |
parent | 488a8184b90801f3987779b5b1b046cf67ba0d4b (diff) |
Support eglgralloctextures through QQuickWindow::createTexture().
Change-Id: I8cbdfde5b47beb849327e4ae61c5009005ffc79c
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'customcontext/context.h')
-rw-r--r-- | customcontext/context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/customcontext/context.h b/customcontext/context.h index 830d854..962bd6b 100644 --- a/customcontext/context.h +++ b/customcontext/context.h @@ -76,6 +76,7 @@ public: void invalidate(); void renderNextFrame(QSGRenderer *renderer, GLuint fbo); QSGTexture *createTexture(const QImage &image) const; + QSGTexture *createTextureNoAtlas(const QImage &image) const; QSGRenderer *createRenderer(); #ifdef PROGRAM_BINARY @@ -134,6 +135,10 @@ public: QSGGlyphNode *createGlyphNode(); #endif +#ifdef CUSTOMCONTEXT_EGLGRALLOCTEXTURE + bool hasEglGrallocTextures() const { return m_eglGrallocTexture; } +#endif + private: int m_sampleCount; @@ -141,6 +146,7 @@ private: uint m_depthBuffer : 1; #if QT_VERSION < 0x50200 + friend class RenderContext; #ifdef CUSTOMCONTEXT_MATERIALPRELOAD bool m_materialPreloading; |