RESOLVED FIXED Bug 154147
[GTK] Allow applications to disable Accelerated Compositing mode
https://bugs.webkit.org/show_bug.cgi?id=154147
Summary [GTK] Allow applications to disable Accelerated Compositing mode
Carlos Alberto Lopez Perez
Reported 2016-02-11 18:32:05 PST
In bug 150558 we added the possibility to force AC to be always on if the environment variable WEBKIT_FORCE_COMPOSITING_MODE is defined. Sometimes, because of bad graphics drivers or other grahpic related bugs (for example see bug 126122) it may be desirable to do the contrary thing: force AC to be off. So I'm proposing here to add another variable, lets name it WEBKIT_DISABLE_COMPOSITING_MODE for consistency with the previous one to disable AC.
Attachments
Patch (1.38 KB, patch)
2016-02-11 18:37 PST, Carlos Alberto Lopez Perez
no flags
Carlos Alberto Lopez Perez
Comment 1 2016-02-11 18:37:32 PST
Carlos Alberto Lopez Perez
Comment 2 2016-02-11 18:44:00 PST
(In reply to comment #0) > So I'm proposing here to add another variable, lets name it > WEBKIT_DISABLE_COMPOSITING_MODE for consistency with the previous one to > disable AC. I mean ^ for consistency with the previous one to force AC mode always on.
Carlos Garcia Campos
Comment 3 2016-02-11 22:39:04 PST
Comment on attachment 271115 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=271115&action=review > Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp:50 > + if (getenv("WEBKIT_DISABLE_COMPOSITING_MODE")) > + setAcceleratedCompositingEnabled(false); Is this enough? We are enabling AC unconditionally in DrawingAreaImpl::setNativeSurfaceHandleForCompositing(), but only when m_layerTreeHost has been created. I guess we would never enter AC mode if the setting is disabled in first place.
Carlos Alberto Lopez Perez
Comment 4 2016-02-12 02:49:30 PST
(In reply to comment #3) > Comment on attachment 271115 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=271115&action=review > > > Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp:50 > > + if (getenv("WEBKIT_DISABLE_COMPOSITING_MODE")) > > + setAcceleratedCompositingEnabled(false); > > Is this enough? We are enabling AC unconditionally in > DrawingAreaImpl::setNativeSurfaceHandleForCompositing(), but only when > m_layerTreeHost has been created. I guess we would never enter AC mode if > the setting is disabled in first place. Yes, my tests indicate it is. For example, if I load poster circle I see a 2D animation instead of the 3D tube.
WebKit Commit Bot
Comment 5 2016-02-12 03:37:33 PST
Comment on attachment 271115 [details] Patch Clearing flags on attachment: 271115 Committed r196467: <http://trac.webkit.org/changeset/196467>
WebKit Commit Bot
Comment 6 2016-02-12 03:37:35 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.