cogl-texture: Share the common code in the set_region virtual
authorNeil Roberts <neil@linux.intel.com>
Thu, 8 Jul 2010 14:15:22 +0000 (15:15 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 9 Jul 2010 10:14:14 +0000 (11:14 +0100)
commit8beb49164ffeffa867d52c9da89c6dbb6e754e4a
tree6f7206707aa079bfc64b3c6b12554dc5c792048c
parent972c0c24f012e09fd2ad47296f2eba15f8ff11da
cogl-texture: Share the common code in the set_region virtual

There was a lot of common code that was copied to all of the backends
to convert the data to a suitable format and wrap it into a CoglBitmap
so that it can be passed to _cogl_texture_driver_upload_subregion_to_gl.
This patch moves the common code to cogl-texture.c so that the virtual
just takes a CoglBitmap that is already in the right format.
clutter/cogl/cogl/cogl-atlas-texture.c
clutter/cogl/cogl/cogl-sub-texture.c
clutter/cogl/cogl/cogl-texture-2d-sliced.c
clutter/cogl/cogl/cogl-texture-2d.c
clutter/cogl/cogl/cogl-texture-private.h
clutter/cogl/cogl/cogl-texture-rectangle.c
clutter/cogl/cogl/cogl-texture.c
clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c