On Tue, 2010-06-08 at 13:41 +0100, Neil Roberts wrote:
> 
> Recently Cogl in git has gained support for attaching arbitrary user
> data to any handle using a pointer as a key in much the same way as
> Cairo does. We could use this to attach the Ruby proxy object to the
> handle so that it could return the same object every time the handle is
> seen. However if we do this then we need to resolve the issue that both
> the proxy object and the GObject will need to reference each other yet
> we still want them to be garbage collected. Most languages that bind
> GObject seem to use toggle references to fix this. So my question is,
> should we add toggle reference support to CoglHandles?

This would certainly help someone implementing a Cogl texture cache as
well, since it is important to know when textures are no longer used.

Regards,

Thomas
 

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Reply via email to