[cairo] virtual surfaces and composition

Henry (Yu) Song henry.song at samsung.com
Wed Dec 9 07:47:01 PST 2015

Does cairo recording surface work for you?  Unfortunately cairo recording surface does not have "TRUE" playback though.  But as long as all of your operators are CAIRO_OPERATOR_OVER, you should be fine.

From: cairo [cairo-bounces at cairographics.org] on behalf of Enrico Weigelt, metux IT consult [enrico.weigelt at gr13.net]
Sent: Tuesday, December 08, 2015 10:44 PM
To: cairo at cairographics.org
Subject: [cairo] virtual surfaces and composition

Hi folks,

I'm currently designing a new widget toolkit (focused on embedded /
full screen targets) and exploring whether cairo is suitable for that.

One important thing I didnt find out yet is how to create virtual
surfaces / canvas'es which later can be composited onto the screen.

The idea goes like this:

For each widget, there will be an virtual surface / canvas, where the
the widget renders itself on. In most cases, it will only be temporarily
accessible - when the engine calls the individual widget's paint handler
(unless the widget explicitly asks for a permanent surface). Optimally
widgets will only be repainted, when it actually changes (eg. not on
moving / scrolling, etc) - it's entirely up to the engine, whether
to buffer pixmaps or paint operations, etc.

How can I achieve that w/ cairo ?



mit freundlichen Grüßen
Enrico Weigelt,
metux IT consulting
cairo mailing list
cairo at cairographics.org

More information about the cairo mailing list