text: pixman: special case rendering for known bg/fg colors
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 13:09:17 +0000 (14:09 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 13:09:17 +0000 (14:09 +0100)
commit048576a85c88f64e37bdaa027fd5153be9410402
tree9aefe575604579f7b8ecd028d1019498a21be638
parent0344686417a6d9b759296013c0616178d5c39fa6
text: pixman: special case rendering for known bg/fg colors

We can preallocate a white solid-fill image so we don't have to do that
for each round where we blend white glyphs.

Also, if the background is black, we can omit the pixman_fill() operation
and use the direct composite with SRC operations.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text_pixman.c