[cairo] [Patch] Limit the amount of shared memory that cairo-xcb uses
psychon at znc.in
Sun Jan 30 11:54:39 PST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Am 30.01.2011 19:45, Chris Wilson wrote:
> I am personally in favour of not using SHM by default. Enabling any amount
> of SHM is likely to cause an issue somewhere and so needs to be managed by
> the client.
Uhm, what kind of issue would you expect? I can't really think of anything bad
that would happen from SHM.
> In effect the only time where we use SHM effectively automatically is for
> fallbacks. Where it is most useful is during pixel upload, and for that we
> need client participation and something akin to
> cairo_surface_create_similar_image() to allocate a SHM image (or fallback
> appropriately) which can be filled by the client.
cairo_surface_create_similar / _cairo_xcb_surface_create_similar already does
exactly this. (Mesh gradients always use SHM currently, too)
But why do you think we need client participation for SHM? It works just fine
currently without any magic on the client side.
Sometimes the people that know software the best are the ones
that hate it the most. -- infogulch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the cairo