Cache the calculated color
authorRaul Fernandes <rgfernandes@gmail.com>
Sat, 11 Apr 2020 00:35:39 +0000 (21:35 -0300)
committerakallabeth <akallabeth@users.noreply.github.com>
Tue, 28 Apr 2020 12:03:19 +0000 (14:03 +0200)
commit4df7200836e9059106c8ae8d5a6572fe599b0519
tree0ce45c5ef99022ad458189f3eb146132deb4c02e
parent127a96d8535b11bc7e339f35a2538d83306c0c9e
Cache the calculated color

In desktop area, the next color has high odds to be the same of previous color.
If we cache the value, it can be reused by the next pixel avoiding recalculation.
This optimization can halve the function's processing.
libfreerdp/codec/color.c