Closed Bug 1632376 Opened 5 years ago Closed 5 years ago

Fix pixel rounding in SWGL

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

SWGL has a legacy magic number in its rounding code (255.49) that predates some of the rounding cleanups I did. Now just a straight scale to 255.0 and then rounding yields more accurate results which should reduce the necessary fuzzing of tests by quite a bit.

Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1363548b4e4d just scale pixels to integer 255 before rounding. r=jimb
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: