Re: virtual surfaces and composition

"Henry (Yu) Song" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E6C33E6C3@sisaex01sj>
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 [[email protected]] on behalf of Enrico Weigelt, metux IT consult [[email protected]]
Sent: Tuesday, December 08, 2015 10:44 PM
To: [email protected]
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 ?


--mtx



--

mit freundlichen Grüßen
--
Enrico Weigelt,
metux IT consulting
+49-151-27565287
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
-- 
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.