DescriptionGTK: reduce cpu usage of upgrade notification animation.
First, don't queue excessive draws when the animation isn't changing. This should reduce cpu usage by about 75%.
Second, don't animate the little dot when the browser window isn't active. For WMs that support _NET_ACTIVE_WINDOW, this should keep CPU usage steady no matter how many browser windows are open.
The net effect of this patch is to reduce CPU usage from 100% in certain cases (when many windows are open) to a negligible amount (on metacity on my workstation).
BUG=48909
TEST=open many windows and inspect CPU usage according to top
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52271
Patch Set 1 #Patch Set 2 : fixme #Patch Set 3 : merge to ToT #
Total comments: 2
Messages
Total messages: 3 (0 generated)
|