Support foreign textures in the texture-2d and rectangle backends
authorNeil Roberts <neil@linux.intel.com>
Mon, 4 Oct 2010 14:27:38 +0000 (15:27 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 22 Oct 2010 11:19:02 +0000 (12:19 +0100)
commit61f2f1c024a01368ff99e6639518463b175ff2c0
tree5cb8e04929a4e842871a6a9e413878fbc5cbbad1
parent7b7b655e6ef45e5bdda25fe7b416ea632a0da25f
Support foreign textures in the texture-2d and rectangle backends

This adds two new internal functions to create a foreign texture for
the texture 2d and rectangle backends. cogl_texture_new_from_foreign
will now use one of these backends directly if there is no waste
instead of always using the sliced texture backend.
clutter/cogl/cogl/cogl-texture-2d-private.h
clutter/cogl/cogl/cogl-texture-2d.c
clutter/cogl/cogl/cogl-texture-rectangle-private.h
clutter/cogl/cogl/cogl-texture-rectangle.c
clutter/cogl/cogl/cogl-texture.c