Now that we have brought back the on demand mode, we should allow applications to choose the policy, wihtout having to deal with environment variables. Settings also allows to set different policy depending on the web view, so for example evolution could disable AC for the composer, but leave the on demand mode for the email viewer.
Created attachment 299940 [details]
Comment on attachment 299940 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=299940&action=review
> + Now that we have brought back the on demand mode, we should allow applications to choose the policy, wihtout
wihtout -> without
> + * by using %WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. And it's also posible to diaable it
diaable -> disable
> + if (changed)
> + g_object_notify(G_OBJECT(settings), "hardware-acceleration-policy");
It's a bit iffy how to handle this, but I would prefer to check the existing value of our API setting and notify if it changes, to close any possibility of notifying if the API setting doesn't change.
Committed r211363: <http://trac.webkit.org/changeset/211363>