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 upSupport source blending to the final framebuffer #643
Comments
|
Could you expand a little bit on the use case for this? |
|
This is used for making parts of the back buffer transparent for the vibrancy effect on OS X and cutting out the spots for window controls on Windows. |
|
@jrmuizel Thanks - does this require anti-aliasing around the edges, or is it a straight in/out mask? |
|
I think pixel aligned rectangles are probably sufficient for our needs. |
|
@jrmuizel OK - I wonder if it makes sense to just use the stencil buffer for this then? |
|
Possibly but that nearly feels like overkill. Let's look more closely at what an appropriate solution will be once we hook up the gecko side. |
|
Sure, sounds good. |
|
This is superseded by #1926 and can be closed. |
https://bugzilla.mozilla.org/show_bug.cgi?id=1391322
See
CAIRO_OPERATOR_SOURCEfrom https://www.cairographics.org/operators/Not entirely sure this is needed. We may use this issue as a space for discussion and close it afterwards.Gecko would provide us with a list of rectangles, which we would then need to ensure are not affected by any rendering. This can be done by rendering them with an opposite alpha from what our framebuffer is cleared with, right after the clear, and then compositing the otherwise final picture onto it with blending that excludes those areas.