diff options
author | Val Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-05-28 17:35:16 +0200 |
---|---|---|
committer | Val Doroshchuk <valentyn.doroshchuk@qt.io> | 2020-06-10 10:06:22 +0200 |
commit | 22ae5eec6314b59c8a969b743a9c05fb184cc9b2 (patch) | |
tree | 898464db0d98f53ff7f10dd378c2dc4ed842cfd1 /src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h | |
parent | b5a55492a63cb2cda75d6f980acb7fc5ae8dfc22 (diff) |
Introduce QAbstractVideoBuffer::MTLTextureHandle
Added MTLTextureHandle to render metal textures.
Is used by default if rhi is enabled for metal backend.
Also fixed the frame renderer to create new opengl context
and use provided one from the video surface as a share context.
To remember, when the quick item is created and updatePaintNode is called,
current gl context is set to the video surface as a property.
When the frame renderer is ready, it extracts the gl context and uses it as a share one.
Task-number: QTBUG-78678
Change-Id: I51ce666ca7c2adc10dd2c1d1dfed99cc9f596e2b
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h')
-rw-r--r-- | src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h index 85dc19d31..c1a629944 100644 --- a/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h +++ b/src/plugins/avfoundation/mediaplayer/avfvideorenderercontrol.h @@ -84,6 +84,7 @@ private: AVFDisplayLink *m_displayLink; QSize m_nativeSize; bool m_enableOpenGL; + bool m_enableMetal; }; QT_END_NAMESPACE |