ector: move gradient color computation to a pool of thread.
authorCedric Bail <cedric@osg.samsung.com>
Sun, 17 Sep 2017 18:46:09 +0000 (11:46 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Sun, 17 Sep 2017 18:49:48 +0000 (11:49 -0700)
commit39fdfc3cac94746c9943cac04c99314d1b0b95a3
treeefe8c497a6ee12cac5d318f59d8029c2b709daf3
parente380ddb742384546ad05a5f8f5472ecdce795538
ector: move gradient color computation to a pool of thread.

This has been a long standing plan for improving performance in rendering
vector object. If your test involve updating gradient, you will get another
speedup of around 15%. Combined with previous shape, we get a 65% improvement
with doing the CPU intensive computation in there own thread before the
rendering kickoff. This was motly theorical until now, but well, it works
great !
src/lib/ector/software/ector_renderer_software_gradient_linear.c
src/lib/ector/software/ector_renderer_software_gradient_radial.c
src/lib/ector/software/ector_software_gradient.c
src/lib/ector/software/ector_software_private.h