RESOLVED FIXED 217496
[MotionMark] Add a fast path for GraphicsContext::strokePath in the case where the path is a line
https://bugs.webkit.org/show_bug.cgi?id=217496
Summary [MotionMark] Add a fast path for GraphicsContext::strokePath in the case wher...
Wenson Hsieh
Reported 2020-10-08 15:32:53 PDT
With GPU process (for canvas) enabled, this improves performance by roughly 20-25% on the Canvas Lines subtest.
Attachments
Patch (3.64 KB, patch)
2020-10-08 15:45 PDT, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2020-10-08 15:45:01 PDT
Tim Horton
Comment 2 2020-10-08 15:59:40 PDT
We should do the multiple only-lineto case too, someday.
Wenson Hsieh
Comment 3 2020-10-08 17:49:37 PDT
Comment on attachment 410892 [details] Patch (In reply to Tim Horton from comment #2) > We should do the multiple only-lineto case too, someday. Indeed! We should be able to do this for paths consisting of up to 3 line segments (without bumping the current size of the InlinePathData variant).
EWS
Comment 4 2020-10-08 18:17:51 PDT
Committed r268240: <https://trac.webkit.org/changeset/268240> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410892 [details].
Radar WebKit Bug Importer
Comment 5 2020-10-08 18:18:18 PDT
Note You need to log in before you can comment on or make changes to this bug.