Closed Bug 1367631 Opened 3 years ago Closed 3 years ago

Round the dest rect of image layer to match the color layer behavior

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: ethlin, Assigned: ethlin)

References

Details

(Whiteboard: gfx-noted)

Attachments

(1 file)

There is a reftest failure[1] when turning on canvas background color. Because we round the bound of the color layer but we don't do rounding for image layer.

[1] layout/reftests/pixel-rounding/rounded-background-color-top-4.html
The patch can fix the reftest failures when using canvas background color layer. I checked the Non-QR try[1] and it looks like the patch doesn't cause new failures. 

[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=bbd891d1bd99d8c3b504d446739e40b2389cd377&selectedJob=101826673
Attachment #8871148 - Flags: review?(matt.woodrow)
Whiteboard: gfx-noted
Assignee: nobody → ethlin
Blocks: 1367987
Attachment #8871148 - Flags: review?(matt.woodrow) → review+
Pushed by ethlin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5dd47ac3e215
Round the dest rect of the image layer to match the color layer behavior. r=mattwoodrow
https://hg.mozilla.org/mozilla-central/rev/5dd47ac3e215
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.