Skip to content
Commit 6acaf2bc authored by Bill Spitzak's avatar Bill Spitzak Committed by Søren Sandmann Pedersen
Browse files

pixman-filter: reduce amount of malloc/free/memcpy to generate filter



Rearranged so that the entire block of memory for the filter pair
is allocated first, and then filled in. Previous version allocated
and freed two temporary buffers for each filter and did an extra
memcpy.

v8: small refactor to remove the filter_width function

v10: Restored filter_width function but with arguments changed to
     match later patches

v11: Removed unused arg and pointer from filter_width function
     Whitespace fixes.

Signed-off-by: default avatarBill Spitzak <spitzak@gmail.com>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Acked-by: default avatarSøren Sandmann <soren.sandmann@gmail.com>
parent d0e6c9f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment