summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-04-14 21:38:45 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-05-12 10:36:29 +0200
commit1f806aa1b40db276dad359863d018171080d93f9 (patch)
tree5a0f8fee94b4d478d7d8c3eaa5d1574ece2d90ca /src/widgets/kernel
parente40443f7dfaa77e1295390385ef76f9b4e87c59b (diff)
New algorithm for drawing thin lines
Added a new QCosmeticStroker class for drawing thin lines. The class can handle both aliased and antialiased lines. The code replaces all the midpoint line drawing algorithms in the raster paintengine and gives correct subpixel positioning for lines. It gives around 30% to 50% speedup against the midpoint algorithm. If we missed that fast path, the speedup is around between a factor of 6 to 8 for lines and aliased paths and 100 and 400 for antialiased paths. Reviewed-by: Kim (cherry picked from commit 37c329a3e35fabc88fbcad824a69f37c671d2132)
Diffstat (limited to 'src/widgets/kernel')
0 files changed, 0 insertions, 0 deletions