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 upSmarter opaque/transparent splits and transformed AA #2016
Conversation
|
Reviewed 21 of 21 files at r1. webrender/res/prim_shared.glsl, line 772 at r1 (raw file):
Neat! webrender/src/frame.rs, line 46 at r1 (raw file):
Perhaps add a comment here saying that these are part of the context to avoid reallocations? webrender/src/frame.rs, line 638 at r1 (raw file):
It might be worth only calling this function if the size of the rectangle is over some arbitrary threshold (maybe 256?). webrender/src/util.rs, line 305 at r1 (raw file):
This seems like it would still result in t-junctions if the radii are not the same at each corner? I might just be not reading this carefully enough... webrender_api/src/display_item.rs, line 42 at r1 (raw file):
NOTE: Once we make the primitive / clip segments work internally, this shouldn't need to be in the public API, and we can move it from the api crate to the main crate. But we need it here for now since we're actually creating new primitives when splitting via the public API. Comments from Reviewable |
|
Review points are addressed now, and the try push looks green. Review status: 20 of 21 files reviewed at latest revision, 5 unresolved discussions. webrender/src/frame.rs, line 46 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
fixed webrender/src/frame.rs, line 638 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
good idea, added now webrender/src/util.rs, line 305 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
this implementation is sub-optimal (still, even if much better than the old one) for the fact it works off the inner rectangle that is conservative: it takes the biggest of the radii affecting each side of the produced rectangle, so we just waste some space if one of the corners have lesser radii than the others. webrender_api/src/display_item.rs, line 42 at r1 (raw file): Previously, glennw (Glenn Watson) wrote…
good point! Comments from Reviewable |
|
Yep, it's definitely an improvement. We can look into the t-junction with non uniform radii issue as a follow up. r=me once we have a green gecko try run. |
|
Thanks, it is all green. |
|
|
Smarter opaque/transparent splits and transformed AA Related to #1384, #1797, #1297 ~~Also TODO:~~ Gecko try push https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4e8ff793bcf938c2cb9ca414368f4bc808a66ad ~~Currently blocked on the `rotated-image.yaml` breakage, investigation is ongoing~~ - solved! <!-- 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/2016) <!-- Reviewable:end -->
|
@bors-servo r- |
|
|
|
Smarter opaque/transparent splits and transformed AA Related to #1384, #1797, #1297 ~~Also TODO:~~ Gecko try push https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4e8ff793bcf938c2cb9ca414368f4bc808a66ad ~~Currently blocked on the `rotated-image.yaml` breakage, investigation is ongoing~~ - solved! <!-- 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/2016) <!-- Reviewable:end -->
|
|
98b0991
into
servo:master
kvark commentedNov 8, 2017
•
edited
Related to #1384, #1797, #1297
Also TODO:Gecko try push https://treeherder.mozilla.org/#/jobs?repo=try&revision=e4e8ff793bcf938c2cb9ca414368f4bc808a66adCurrently blocked on the- solved!rotated-image.yamlbreakage, investigation is ongoingThis change is