Add new pixman_image_create_bits_no_clear() API
authorSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 12 Oct 2012 22:07:29 +0000 (18:07 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 21 Oct 2012 08:13:36 +0000 (04:13 -0400)
commit2d9cb563b415e90cef898de03de7ed9c6f091db1
treed5f9c4fa657a7e28eee3fcce403afea40511d113
parentaf803be17b4ea5f53db9af57b6c6ef06db99ebbd
Add new pixman_image_create_bits_no_clear() API

When pixman_image_create_bits() function is given NULL for bits, it
will allocate a new buffer and initialize it to zero. However, in some
cases, only a small region of the image is actually used; in that case
it is wasteful to touch all of the memory.

The new pixman_image_create_bits_no_clear() works exactly like
_create_bits() except that it doesn't initialize any newly allocated
memory.
pixman/pixman-bits-image.c
pixman/pixman-fast-path.c
pixman/pixman-private.h
pixman/pixman.h