[webkit-gtk] Add API for disabling the accelerated compositing

Carlos Garcia Campos cgarcia at igalia.com
Tue Nov 15 03:01:22 PST 2016


El mar, 15-11-2016 a las 21:41 +1100, Michael Gratton escribió:
> On Tue, Nov 15, 2016 at 8:21 PM, Carlos Garcia Campos 
> <cgarcia at igalia.com> wrote:
> > 
> > >  The only way right now to disable the AC is through the
> > > environment
> > >  variable WEBKIT_DISABLE_COMPOSITING_MODE. I would like to
> > > propose 
> > > the
> > >  following API:
> > > 
> > >  void webkit_web_context_set_accelerated_compositing_enabled
> > >  (WebKitWebContext *context, gboolean enabled);
> > > 
> > >  gboolean webkit_web_context_get_accelerated_compositing_enabled
> > >  (WebKitWebContext *context);
> > 
> > There's already a setting in WebCore, so it would be more natural
> > to
> > expose it as a WebKitSetting, we used to have that setting in
> > WebKit1
> > indeed.
> 
> I'd be interested in this for Geary, for much the same reasons as
> the 
> Evo team.
> 
> Dumb question, but would a workaround for the moment be to set the 
> WEBKIT_DISABLE_COMPOSITING_MODE env var from the embedding process 
> itself, before the WK2 context is initialised, so that AC is 
> subsequently disabled?

Yes.

> //Mike
> 
-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20161115/e849a28b/attachment.sig>


More information about the webkit-gtk mailing list