Fix slow posterize

Authored by surt on Jun 1 2019, 10:55 PM.



As discussed here:

Move the colour transformation creation out of the transform function into the constructor so posterize is back to interactive speed.

Diff Detail

R37 Krita
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
surt requested review of this revision.Jun 1 2019, 10:55 PM
surt created this revision.
rempt accepted this revision.Jun 3 2019, 8:27 AM
rempt added a subscriber: rempt.

Yes, this is definitely an improvement.

This revision is now accepted and ready to land.Jun 3 2019, 8:27 AM
This revision was automatically updated to reflect the committed changes.