general: Store the iter initializer in a one-entry pixman_iter_info_t table
authorSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 22 May 2013 12:05:55 +0000 (08:05 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 22 May 2013 13:43:21 +0000 (09:43 -0400)
commit245d0090c596eb3ca50294d0dec0fb0933eff0db
tree0303eac184cf07ea31dec33717ff3d7a55a07620
parent9c15afb105ee0c5b166b9bd07c28857927b1aecb
general: Store the iter initializer in a one-entry pixman_iter_info_t table

In preparation for sharing all iterator initialization code from all
the implementations, move the general implementation to use a table of
pixman_iter_info_t.

The existing src_iter_init and dest_iter_init functions are
consolidated into one general_iter_init() function that checks the
iter_flags for whether it is dealing with a source or destination
iterator.

Unlike in the other implementations, the general_iter_init() function
stores its own get_scanline() and write_back() functions in the
iterator, so it relies on the initializer being called after
get_scanline and write_back being copied from the struct to the
iterator.
pixman/pixman-general.c