Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable antialiasing on accelerated canvas when msaa is available on cairo #244

Merged
merged 1 commit into from Apr 10, 2017

Conversation

magomez
Copy link

@magomez magomez commented Apr 5, 2017

This should enable antialiasing on accelerated canvas when cairo is able to use MSAA.
In order to make this work this env variable needs to be set:
CAIRO_GL_COMPOSITOR=msaa
or cairo won't use the msaa compositor.

@magomez
Copy link
Author

magomez commented Apr 5, 2017

@walmis, could you give this a try, please? (not sure whether the mention is going to work)

@magomez magomez mentioned this pull request Apr 10, 2017
@walmis
Copy link

walmis commented Apr 10, 2017

I've compiled the patch, seems to work fine, antialiasing on small canvases work with CAIRO_GL_COMPOSITOR=noaa, but on larger canvases, noaa gives jagged edges, and msaa gives smooth edges.

@magomez magomez merged commit 048834d into master Apr 10, 2017
@magomez magomez deleted the msaa-canvas branch April 19, 2017 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants