Closed Bug 1522395 Opened 5 years ago Closed 5 years ago

Fix double inflation of text shadow bounds.

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: gw, Assigned: gw)

References

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.

Blocks: 1521015
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: 5 years 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.

Attachment

General

Created:
Updated:
Size: