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 upTake the clip chain's clip rect into account for local_rect computation #2714
Conversation
|
uh, weird test results: |
|
The failure appears to be #2374 coming back: a text primitive is culled off while the shadow should stay visible. |
|
Can we apply the inflation factor after intersecting with the chain local rect? |
2da3e0f
to
c878c0e
|
@glennw I don't think this would be correct, since the very testcase failing is because a primitive is culled out while its shadow needs to be visible. Given that the shadow visibility is provided by that inflation radius, if we clip the primitive before inflation, it becomes completely culled. I believe I found the correct way to do the clipping now, PR is updated. |
|
Do we need another try run for this change? |
|
I think this looks right - r=me if try is green, but it might be worth getting @mrobinson to take a look over it too :) |
|
This change seems fine to me. |
|
@bors-servo r=glennw |
|
|
Take the clip chain's clip rect into account for local_rect computation Fixes #2567 The clip chain knows that each gradient primitive in each opacity-filtered stacking context is clipped to a 100x100 rectangle, and now it's taken into account, so we no longer allocate/fill/sample 35 2Kx2K targets :) Try push is pending... <!-- 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/2714) <!-- Reviewable:end -->
|
|
kvark commentedMay 1, 2018
•
edited by larsbergstrom
Fixes #2567
The clip chain knows that each gradient primitive in each opacity-filtered stacking context is clipped to a 100x100 rectangle, and now it's taken into account, so we no longer allocate/fill/sample 35 2Kx2K targets :)
Try push is pending...
This change is