Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnsure non-zero picture task size #2490
Conversation
|
According to the comment the rounding was intentional to pass Gecko reftests. So presumably there will be reftest failures from this change? Let's wait and see what the try push results look like. |
|
Yeah, might be safer to just round up to 1 only from 0, if the try push is not good. |
|
@staktrace PTAL, another try push in flight |
| // technically correct. Ideally we should ceil() here, and ensure that | ||
| // the extra part pixel in the case of fractional sizes is correctly | ||
| // handled. For now, just use rounding which passes the existing | ||
| // Gecko tests. |
This comment has been minimized.
This comment has been minimized.
staktrace
Mar 5, 2018
Contributor
The comment should be updated to indicate that width/height of 0 causes badness, hence the max'ing with 1. But other than that, LGTM
|
Fixed now, thanks for the review! |
|
|
Ensure non-zero picture task size Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1442718 ~~Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc0d35306d006a09ddb0cf7db453a97fa9bf8dca~~ Another try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=11b5d65d0e682c277992c1cea5d4048227184118 r? @staktrace <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2490) <!-- Reviewable:end -->
|
|
here we go again... |
Ensure non-zero picture task size Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1442718 ~~Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc0d35306d006a09ddb0cf7db453a97fa9bf8dca~~ Another try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=11b5d65d0e682c277992c1cea5d4048227184118 r? @staktrace <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2490) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Ensure non-zero picture task size Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1442718 ~~Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc0d35306d006a09ddb0cf7db453a97fa9bf8dca~~ Another try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=11b5d65d0e682c277992c1cea5d4048227184118 r? @staktrace <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2490) <!-- Reviewable:end -->
|
@kvark @staktrace I think it's fine to merge this as a bandaid fix, but I don't think it's the "correct" fix. It seems like we should detect a zero-sized picture, and not be trying to add it to the texture cache at all? That would probably be more efficient since we'd then skip building that picture, adding batches for it, allocating target space etc. |
|
@glennw I don't think we should ignore it here. It's not zero-sized, it's just less than 0.5 sized. |
|
@kvark Ah, I see - that makes sense. Thanks! |
|
|
kvark commentedMar 5, 2018
•
edited
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1442718
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc0d35306d006a09ddb0cf7db453a97fa9bf8dcaAnother try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=11b5d65d0e682c277992c1cea5d4048227184118
r? @staktrace
This change is