We use GdkImage to manage the rendering buffer for us. It supports automatic detection and usage of MIT-ShM, so we don't have to worry about it beyond synchronising the screen before rendering.
Generated on Sat Nov 30 2013 06:54:24 for Gnash by 1.8.1.2