diff options
Diffstat (limited to 'customcontext/texture/eglgralloctexture.h')
-rw-r--r-- | customcontext/texture/eglgralloctexture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/customcontext/texture/eglgralloctexture.h b/customcontext/texture/eglgralloctexture.h index 2d05f7e..94d36b9 100644 --- a/customcontext/texture/eglgralloctexture.h +++ b/customcontext/texture/eglgralloctexture.h @@ -72,6 +72,8 @@ public: bool hasAlpha() const { return m_hasAlpha; } + static NativeBuffer *create(const QImage &image); + private: QAtomicInt m_ref; EGLImageKHR m_eglImage; @@ -91,10 +93,13 @@ public: virtual bool hasMipmaps() const; virtual void bind(); + static EglGrallocTexture *create(const QImage &image); + private: mutable GLuint m_id; NativeBuffer *m_buffer; bool m_bound; + bool m_ownsBuffer; }; class EglGrallocTextureFactory : public QQuickTextureFactory |