ximage: do not allocate extra alignment slack for shared memory
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 4 Apr 2014 11:40:14 +0000 (12:40 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Apr 2015 10:15:55 +0000 (11:15 +0100)
commit3fd184da7811ba7073016316cfaa2d0a21d8c1c7
treeef864a02df27bfa22fd102983937107e42fe93c9
parentcca103296d3e1c2754f1b629754c93c1dd9035c9
ximage: do not allocate extra alignment slack for shared memory

A previous patch increased allocations by 15 bytes in order to ensure
16 byte alignment for g_malloc blocks. However, shared memory is
already block aligned, and this extra 15 bytes is not needed. Since
shared memory limits are low compared to RAM, we remove this waste.

https://bugzilla.gnome.org/show_bug.cgi?id=727236
sys/ximage/ximagepool.c