Fix performance regression in HTML5 canvas stroke()
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Tue, 19 Nov 2013 13:21:16 +0000 (14:21 +0100)
committerAllan Sandfeld Jensen <allan.jensen@digia.com>
Mon, 10 Mar 2014 13:24:41 +0000 (14:24 +0100)
commit748031e67bfa41fdb413cab8dab0d1a03ee45577
tree68303168767f17650da265ef5c448ebd376203f1
parentf3c7b25773ac50b5e6a0373ce5a8f902fd12bbc8
Fix performance regression in HTML5 canvas stroke()

To solve corner case of stroking intersecting path with a transparent
color we switched the strokePath implementation to using QPainterPathStroker
in Qt 5. Unfortunately this appears to be 100-1000x slower than using
QPainter::strokePath.

This patch partially reverts the change and now only use QPainterPathStroker
when stroking a transparent outline.

Task-number: QTBUG-34855
Change-Id: I9f5c593b9093a8eb94a76081bbc2e7565c306afd
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp