Re: virtual surfaces and composition

"Enrico Weigelt, metux IT consult" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On 09.12.2015 19:18, LRN wrote:

>> 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.
> 
> CMIIW, but IME the recording surface draws roughly as fast as your own code
> does. I.e. you will get no speedup by caching drawing of a widget on a
> recording surface.

Assuming the rendering engine and the widgets are on the same host.

Anyways, things like scrolling, resizing, zooming, etc should be
handled entirely by the engine, with minimal widget interaction.

> Image surfaces should work fine and you can create image surfaces that are
> similar to the actual output surface of the display system you are using,
> so they can be composited efficiently (AFAIU).

As long as no zooming is involved, that should be fine. But as soon as
zooming comes into the game, vector-based would be a better option.

> You might want to ask GTK+ developers about their experience in using cairo
> as a backend for a widget toolkit, because that is exactly what they are
> doing (and if your licensing situation allows, you can even borrow somre of
> their code; it's LGPLv2+).

Okay, maybe I'll find some hints there, but the concepts are very
different.

By the way:

does cairo already data structures / operations for describing things
like overlaping and nested windows ?


--mtx

--
Enrico Weigelt,
metux IT consulting
+49-151-27565287
-- 
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.