summaryrefslogtreecommitdiff
path: root/src/plugins/android/mediaplayer/qandroidvideorendercontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/android/mediaplayer/qandroidvideorendercontrol.h')
-rw-r--r--src/plugins/android/mediaplayer/qandroidvideorendercontrol.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/android/mediaplayer/qandroidvideorendercontrol.h b/src/plugins/android/mediaplayer/qandroidvideorendercontrol.h
index 525291e1f..cd935502c 100644
--- a/src/plugins/android/mediaplayer/qandroidvideorendercontrol.h
+++ b/src/plugins/android/mediaplayer/qandroidvideorendercontrol.h
@@ -65,14 +65,18 @@ public:
void setSurface(QAbstractVideoSurface *surface) Q_DECL_OVERRIDE;
jobject surfaceHolder() Q_DECL_OVERRIDE;
+ bool isTextureReady() Q_DECL_OVERRIDE;
+ void setTextureReadyCallback(TextureReadyCallback cb, void *context = 0) Q_DECL_OVERRIDE;
void setVideoSize(const QSize &size) Q_DECL_OVERRIDE;
void stop() Q_DECL_OVERRIDE;
+ bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
+
private Q_SLOTS:
void onFrameAvailable();
private:
- void setupSurface();
+ bool initSurfaceTexture();
void renderFrameToFbo();
void createGLResources();
@@ -88,6 +92,9 @@ private:
JSurfaceTexture *m_surfaceTexture;
JSurfaceTextureHolder *m_surfaceHolder;
uint m_externalTex;
+
+ TextureReadyCallback m_textureReadyCallback;
+ void *m_textureReadyContext;
};
QT_END_NAMESPACE