Closed
Bug 1361662
Opened 8 years ago
Closed 8 years ago
Fix rounding tests after enabling background color layer
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: ethlin, Assigned: ethlin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
2.12 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
After enabling background color layer, the test '1ayout/reftests/pixel-rounding/rounded-background-color-top-4.html' will fail[1]. It looks like we'll have some difference on the edge of the elements. I guess it's because originally we paint everything in a painted layer and the coordinate is in float[2]. After we have a color layer for it, the layer's coordinate is in integer[3]. Not sure if we should fuzz these tests or fix them.
[1] https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/DkZtEIYsRSmLYrTDb-fd_Q/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1
[2] https://dxr.mozilla.org/mozilla-central/source/layout/painting/nsDisplayList.cpp?q=path%3AnsDisplayList.cpp&redirect_type=single#4071
[3] https://dxr.mozilla.org/mozilla-central/source/layout/painting/nsDisplayList.cpp?q=path%3AnsDisplayList.cpp&redirect_type=single#4036
Assignee | ||
Comment 1•8 years ago
|
||
Matt, would you mind providing some suggestions on this?
Flags: needinfo?(matt.woodrow)
Comment 2•8 years ago
|
||
Do we need the ColorLayer bounds to be an IntRect?
Flags: needinfo?(matt.woodrow)
Assignee | ||
Updated•8 years ago
|
Whiteboard: [gfx-noted]
Assignee | ||
Comment 3•8 years ago
|
||
I think I found the problem. Gecko does rounding for the coordinate of layers except mask layer. In this case, we have a color layer and there is a mask layer on it. The position mismatch between the color layer and mask layer causes this problem.
Assignee | ||
Comment 4•8 years ago
|
||
I use the same way "ToNearestPixels" to round the bound of mask layer. Then the round reftests passed[1] with background color layer on. I also checked m-c try result[2] and it looks like the change doesn't effect the original tests.
[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=d25b69de022a955fc179d0adbe40f8355ae0ef42&selectedJob=98236784
[2] https://treeherder.mozilla.org/#/jobs?repo=try&revision=11a9f57acce04d1942937d56746c390534635d43&selectedJob=98239148
Attachment #8866651 -
Flags: review?(matt.woodrow)
Updated•8 years ago
|
Attachment #8866651 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ethlin
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8336687998c5
Round mask layer boundary to match other layers. r=mattwoodrow
Keywords: checkin-needed
![]() |
||
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•