Closed Bug 1522395 Opened 9 months ago Closed 9 months ago

Fix double inflation of text shadow bounds.

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: gw, Assigned: gw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The bounding rects for primitives in a text shadow are already inflated to account for the blur radius. WR is also applying an inflation, resulting in text shadows being much larger than required.

Add an option to the WR shadow API to specify whether the primitives have already had their bounds inflated.

Assignee: nobody → gwatson

This is a partial fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1521015.

I expect this should significantly help GPU time in every page with text shadows.

Pushed by gwatson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/63049c1db4fc
Fix double inflation of text shadow bounds. r=kvark
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Depends on: 1529992
You need to log in before you can comment on or make changes to this bug.