[Cogl] [PATCH] cogl-gst: allocate textures synchronously

Neil Roberts neil at linux.intel.com
Mon Jan 13 06:24:09 PST 2014


Robert Bragg <robert at sixbynine.org> writes:

> On a side note; It would be nice at some point to add a
> cogl_bitmap_new_from_data_full() function that lets us pass a
> destroy_notify callback for when the CoglBitmap is freed to make it
> more convenient to wrap ref-counted data such as a GstBuffer.

Could you not just use cogl_object_set_user_data for this? That is meant
to work as a our general-purpose destroy notification mechanism for
CoglObjects, right?

Regards,
- Neil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/cogl/attachments/20140113/adea97f2/attachment.pgp>


More information about the Cogl mailing list