[cairo] Carl, please add an extra methond in Cairo
David Reveman
davidr at novell.com
Sun Aug 14 07:15:33 PDT 2005
On Sat, 2005-08-13 at 22:30 +0800, Jackey Yang wrote:
> Carl,
>
> Would you mind to add the following patch into cvs, so we can get a glitz
> surface from a cairo surface. It may not necessary for most of you guys but
> we do. I think this method will be widely used when there are more
> applications based on cairo*^_^*. Thx lots, nice day.
Is this more than just a convenience thing that allows you to not keep
track of the glitz_surface_t yourself?
The only additional functionality I can think of is that you can get the
glitz_surface_t from a cairo_surface_t created using
cairo_surface_create_similar but if you really need the glitz_surface_t
you shouldn't be using create_similar but instead
cairo_glitz_surface_create.
If it's just a convenience thing, have you considered using
cairo_surface_set_user_data?
-David
More information about the cairo
mailing list