clutter-cairo-texture: Use the new cogl_pixel_buffer API
authorNeil Roberts <neil@linux.intel.com>
Wed, 3 Feb 2010 20:58:32 +0000 (20:58 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Apr 2010 12:19:57 +0000 (13:19 +0100)
commit716ec82db8bec57e35d51e8dee5468435fc9e59e
tree7f336bc10803d4c02c79303889779dcc34c6dfe6
parent1a1e7d35730b510f2a32e25bb34ae7ab0e2be349
clutter-cairo-texture: Use the new cogl_pixel_buffer API

ClutterCairoTexture now stores the surface image data in a Cogl pixel
buffer object. When clutter_cairo_texture_create is called the buffer
is mapped and a new Cairo surface is created to render directly to the
PBO. When the surface is destroyed the buffer is unmapped and a Cogl
texture is recreated from the buffer. This should enable slightly
faster uploads when using Cairo because it avoids having to copy the
surface data to the texture.

http://bugzilla.openedhand.com/show_bug.cgi?id=1982

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/clutter-cairo-texture.c