cogl: Do the premult conversion in-place rather than copying to a new buffer
authorNeil Roberts <neil@linux.intel.com>
Fri, 29 Jan 2010 15:15:08 +0000 (15:15 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 1 Feb 2010 13:27:34 +0000 (13:27 +0000)
commite83ffb1fa3436bf1506c32856b2a3ba23254e068
tree8fd1596b5e1ee5f3b572ba0cc7f1f89c4e5dc0eb
parent72fba19eac68ffa30c3f60aeecfdbfa6a2da7bd4
cogl: Do the premult conversion in-place rather than copying to a new buffer

The premult part of _cogl_convert_premult has now been split out as
_cogl_convert_premult_status. _cogl_convert_premult has been renamed
to _cogl_convert_format to make it less confusing. The premult
conversion is now done in-place instead of copying the
buffer. Previously it was copying the buffer once for the format
conversion and then copying it again for the premult conversion. The
premult conversion never changes the size of the buffer so it's quite
easy to do in place. We can also use the separated out function
independently.
clutter/cogl/cogl/cogl-atlas-texture.c
clutter/cogl/cogl/cogl-bitmap-fallback.c
clutter/cogl/cogl/cogl-bitmap-pixbuf.c
clutter/cogl/cogl/cogl-bitmap-private.h
clutter/cogl/cogl/cogl-bitmap.c
clutter/cogl/cogl/cogl-texture-2d-sliced.c
clutter/cogl/cogl/cogl-texture-2d.c
clutter/cogl/cogl/cogl-texture.c