headless: optimize DrawWaveLine / drawPixel.
commit036d2653d1005b1c5a0b4ca323513557b1cc7d52
authorMichael Meeks <michael.meeks@collabora.com>
Mon, 28 Oct 2019 16:37:57 +0000 (28 16:37 +0000)
committerCaolán McNamara <caolanm@redhat.com>
Mon, 28 Oct 2019 18:59:46 +0000 (28 19:59 +0100)
treecc5e75fb8d02d59a8566523a03bbb1d30fe0ca08
parentb04109027abc76b56a33f471f4cc0a9420ee4f29
headless: optimize DrawWaveLine / drawPixel.

ImplDrawWaveLine - used to render colored lines under mis-spelled
and/or grammatically interesting sections uses (for better or worse)
'drawPixel' to draw the line.

Implementing drawPixel with a tiny B2DPolyPolygon is easy reading
but triggers the unbelievably expensive SystemDependentDataHolder
paths as well as some big chunks of logic for very large numbers
of pixels (if you have lots of mis-spelling this can make typing
visibly slower.).

Change-Id: Ie6ad513e27f820bcad5030579428374c8d22fb3d
Reviewed-on: https://gerrit.libreoffice.org/81622
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
vcl/headless/svpgdi.cxx