gl: add a sync meta for synchronizing across GL contexts
authorMatthew Waters <matthew@centricular.com>
Fri, 17 Oct 2014 13:22:24 +0000 (15:22 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:51 +0000 (19:31 +0000)
commit6bb113f685f552fdd2cf0194b7df4580fa716b2f
tree42cadf55263d8956765f880048efb1ceefe5ecf6
parentf4dbfec17bf4f55a79bdf7df1ea92ee092f8fe57
gl: add a sync meta for synchronizing across GL contexts

A context can create a GLsync object that can be waited on in order
to ensure that GL resources created in one context are able to be
used in another shared context without any chance of reading invalid
data.

This meta would be placed on buffers that are known to cross from
one context to another.  The receiving element would then wait
on the sync object to ensure that the data to be used is complete.
12 files changed:
ext/gl/gstglimagesink.c
ext/gl/gstglmixer.c
ext/gl/gstgltestsrc.c
gst-libs/gst/gl/Makefile.am
gst-libs/gst/gl/gl.h
gst-libs/gst/gl/glprototypes/gstgl_compat.h
gst-libs/gst/gl/glprototypes/sync.h
gst-libs/gst/gl/gstglbufferpool.c
gst-libs/gst/gl/gstglcolorconvert.c
gst-libs/gst/gl/gstglfilter.c
gst-libs/gst/gl/gstglsyncmeta.c [new file with mode: 0644]
gst-libs/gst/gl/gstglsyncmeta.h [new file with mode: 0644]