Howto disable gecko's GTK themeing?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Howto disable gecko's GTK themeing?

Clemens Eisserer
Hi,

Because of GTK's inability to act as a theme provider for applications
which require transparency information,
gecko does ugly hacks, which cause a lot of context switches and GPU stalls.
On sites with many GTK themed elements (buttons, input fields,
scrollbars), I get a noticeable hit in painting performance.

Is there a way to disable gecko's GTK themeing, and instead let it
paint something plain & simple?

Thank you in advance, Clemens
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Howto disable gecko's GTK themeing?

L. David Baron
On Monday 2010-05-03 22:45 +0200, Clemens Eisserer wrote:
> Because of GTK's inability to act as a theme provider for applications
> which require transparency information,
> gecko does ugly hacks, which cause a lot of context switches and GPU stalls.
> On sites with many GTK themed elements (buttons, input fields,
> scrollbars), I get a noticeable hit in painting performance.
>
> Is there a way to disable gecko's GTK themeing, and instead let it
> paint something plain & simple?

I thought we had a hidden pref for this, but I can't seem to find
one.

If, in fact, we don't have one, then it could be disabled with a
relatively simple extension:  one that provides the contract
"@mozilla.org/chrome/chrome-native-theme;1".  (All you'd need to do
is make an implementation that doesn't QueryInterface to nsITheme.)

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Howto disable gecko's GTK themeing?

L. David Baron
On Monday 2010-05-03 14:08 -0700, L. David Baron wrote:

> On Monday 2010-05-03 22:45 +0200, Clemens Eisserer wrote:
> > Because of GTK's inability to act as a theme provider for applications
> > which require transparency information,
> > gecko does ugly hacks, which cause a lot of context switches and GPU stalls.
> > On sites with many GTK themed elements (buttons, input fields,
> > scrollbars), I get a noticeable hit in painting performance.
> >
> > Is there a way to disable gecko's GTK themeing, and instead let it
> > paint something plain & simple?
>
> I thought we had a hidden pref for this, but I can't seem to find
> one.

Er, sorry, we do have a pref.  So either go to about:config and
create a new boolean pref with the name
"mozilla.widget.disable-native-theme" and value true (and then
restart Firefox), or add (while Firefox is not running) the line:

user_pref("mozilla.widget.disable-native-theme", true);

to the prefs.js in your profile

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Howto disable gecko's GTK themeing?

Clemens Eisserer
Hi David,

> Er, sorry, we do have a pref.  So either go to about:config and
> create a new boolean pref with the name
> "mozilla.widget.disable-native-theme" and value true (and then

Wonderful, thanks a lot :)
I never thought that it would make such a difference, I now can even
scroll through my gmail-inbox in "real-time".

However although all websites/dialogs look fine, firefox' main window
is quite broken without native theming.
Should I file a bug about this?

Thanks again, Clemens

_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Howto disable gecko's GTK themeing?

Boris Zbarsky
In reply to this post by L. David Baron
On 5/4/10 3:48 AM, Clemens Eisserer wrote:
> Should I file a bug about this?

Please, yes.

-Boris
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance
Reply | Threaded
Open this post in threaded view
|

Re: Howto disable gecko's GTK themeing?

Clemens Eisserer
>> Should I file a bug about this?
>
> Please, yes.

Ok, thanks a lot - already filed:
https://bugzilla.mozilla.org/show_bug.cgi?id=563886

Thanks again, Clemens
_______________________________________________
dev-performance mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-performance