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)
committerMatthew Waters <matthew@centricular.com>
Thu, 27 Nov 2014 22:14:25 +0000 (09:14 +1100)
commit8f86923b00c5625510ca0c0bfb1f200b863f4a1c
tree47ab1257693a08b04d65191280da4886dca7dbba
parentad77f0392f1b70728780e3edc3e86b9efbba8a16
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.
ext/gl/gstglmixer.c