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 upPort YUV primitive to be a brush. #2424
Conversation
|
If someone else on Gecko knows the YUV code better, please get them to take a look too as we don't have a huge amount of test coverage in-tree for YUV images. Pending try: |
|
There are a couple of failures in some of the MP4 tests, which are probably related to this. I'll investigate those and see if I can reproduce locally. |
Also refactor and optimize the YUV shader implementation to do less per-pixel work. Support segment building for YUV primitive - this is a large performance win for any YUV images with a complex clip on them. This is part of the prep work to allow selection of whether a stacking context is rasterized in local or screen-space.
|
Fixed a typo - was using the |
|
Try looks good now, I think - just the expected failure in R8 from previous PR, and an unrelated intermittent in R4 (that test has no YUV images). |
|
Reviewed 10 of 10 files at r1. webrender/res/brush_yuv_image.glsl, line 146 at r1 (raw file):
it almost feels like our webrender/res/brush_yuv_image.glsl, line 159 at r1 (raw file):
uh, the Comments from Reviewable |
|
@bors-servo r+ |
|
|
Port YUV primitive to be a brush. Also refactor and optimize the YUV shader implementation to do less per-pixel work. Support segment building for YUV primitive - this is a large performance win for any YUV images with a complex clip on them. This is part of the prep work to allow selection of whether a stacking context is rasterized in local or screen-space. <!-- 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/2424) <!-- Reviewable:end -->
|
|
|
This PR seems to have introduced shader compilation failures on Windows. See https://treeherder.mozilla.org/logviewer.html#?job_id=162670488&repo=try&lineNumber=1823 This also probably explains the orange windows test jobs in the try push noted earlier in this PR. Those jobs should be green. |
|
@staktrace sorry about that! I'm fixing this. |
Fix brush YUV shader Fixes #2424 (comment) r? @glennw , cc @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/2437) <!-- Reviewable:end -->
glennw commentedFeb 15, 2018
•
edited by larsbergstrom
Also refactor and optimize the YUV shader implementation to do
less per-pixel work.
Support segment building for YUV primitive - this is a large
performance win for any YUV images with a complex clip on them.
This is part of the prep work to allow selection of whether
a stacking context is rasterized in local or screen-space.
This change is