Re: Howto disable gecko's GTK themeing?

"L. David Baron" <[email protected]> Mon, 3 May 2010 14:08:07 -0700
Newsgroups gmane.comp.mozilla.performance
Message-ID <[email protected]>
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/