Closed Bug 1447839 Opened 7 years ago Closed 2 years ago

Stop using PathBuilderSkia in PathBuilderRecording

Categories

(Core :: Graphics: WebRender, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [sp3])

Attachments

(3 files)

We're only using it for implementing CurrentPoint().
Assignee: nobody → jmuizelaar
I'm wrong. We use it for other methods too. It's probably better to just use the Skia path internally.
Blocks: 1485450
Blocks: 1485431
Blocks: stage-wr-next
No longer blocks: stage-wr-trains
Blocks: wr-blob-perf
No longer blocks: stage-wr-next
No longer blocks: 1485450
Blocks: 1557069
Severity: normal → S3
Blocks: 1821937

Alternatively, we can create and cache the Skia path on demand when needed for the methods that use it.

Attachment #9323640 - Attachment description: Bug 1447839 - Avoid creating internal path builer for PathRecording unless necessary. r?jrmuizel → Bug 1447839 - Avoid creating internal path builder for PathRecording unless necessary. r?jrmuizel
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03e8e473943d Avoid creating internal path for PathRecording unless necessary. r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/038ecfe701fb Avoid creating internal path builder for PathRecording unless necessary. r=jrmuizel
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

The math for directly calculating the endpoint of the arc is actually trivial,
and ArcToBezier is pretty expensive so should be avoided.

Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/229cb61335bb Directly calculate endpoint in PathBuilderRecording::Arc. r=jrmuizel,gfx-reviewers

A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)

Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: