Boris,

Thanks for the prompt reply!

Boris Zbarsky wrote:
> Sam Deane wrote:
> > I'm not clear from the discussions that I've read whether the Gecko
> > rendering is double-buffered, or whether it just splashes things
> > straight into a window.
>
> It's usually double-buffered, at least for painting of the non-plugin
content.
>   The one exception, I believe, is on Mac on pages where plugins are
present.
> Mac plugins apparently throw a fit when you try to double-buffer
those pages...

That answer seems to imply that on Windows at least, the content is
double-buffered, including that rendered by plugins. Or did I
misinterpret your answer?

If it's double buffered then I'm presuming everything is rendered into
some sort of offscreen bitmap or drawing context which is then blitted
to the screen. In which case it ought to be relatively easy to hook to
the window update code and do something else with the buffer, instead
of (or as well as) blitting it to the window.


> > In particular, I'm wondering what happens with
> > plug-ins - do they get rendered 'directly' into the window for
> > efficiency and/or compliance with the underlying APIs that they
call
> > (again, Quicktime, Flash etc)?
>
> This may depend on whether the plugin is in windowless mode or not...
:(

For our purposes we could probably hack things so that they are always
in windowless mode, as long as the plugin supports it. I'm new to all
this so I don't know - is it likely that most of the mainstream plugins
will support it?

We don't have to render any arbitrary web page, we are simply using
html/css/etc as a convenient mechanism which people can use to create
content which we then send down our socket, so we could probably live
with a restricted set of plugins.

> > I've seen references to buffering / offscreen rendering in the
> > archives along the lines of "it doesn't do it yet", but they are
all
> > fairly old so I'm crossing my fingers and hoping that they might
now
> > be out of date.
>
> No, those are up to date.  There's code floating about to do it, but
it's not in
> the tree yet....

Would you have any idea who I could talk to about that floating code,
or where I could find it?

Cheers,

- Sam -

_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to