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

Lionel Landwerlin llandwerlin at gmail.com
Fri Jan 10 18:38:18 PST 2014


This patch now makes me wonder why we're using this Bitmap to Texture
trick?
We need to copy the texture everytime, because the GstBuffer is unref at
the end of the upload().
Any idea?

Otherwise the patch makes sense.

-
Lionel


On Sat, 2014-01-11 at 01:54 +0000, Robert Bragg wrote:
> From: Robert Bragg <robert at linux.intel.com>
> 
> This makes sure video textures being uploaded via
> video_texture_new_from_data are allocated before the function returns.
> This function create a CoglBitmap to wrap the data from gstreamer and
> by
> allowing cogl to allocate the texture lazily it's possible that the
> data
> being pointed to by the bitmap won't remain valid until we actually
> come
> to allocate the texture.




More information about the Cogl mailing list