How to know if a surface is mapped

Carlos López González <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAF52pzKxYMU+3kEjRo1j6jZS7pAv29RCKY8Qshs=P8tW3FO59g@mail.gmail.com>
Hi!
I'm designing a rendering system that uses Cairo surfaces as the destiny to
render the scenes.
The rendering system launches a threaded (asynchronous) system to render
the shapes on the Cairo surface.
When the widget that will show the render result on the screen is requested
to be drawn, it reads the Cairo surface and paints it over the widget.

The problem comes when the render system needs to map/unmap the Cairo
surface and the widget is requested to be drawn. In that case, according to
the documentation the surface behavior is unknown and so the render result
is incorrect. But the widget thinks that the update of the drawing area was
done and it is marked as 'clean' (no refreshed again).

So the question is: is there any way to know if a surface is currently
mapped?

I've look to the cairo_status_t possible values and don't figure out any
that could response to that situation.

Thanks!
-- 
Carlos
http://synfig.org

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.