summaryrefslogtreecommitdiffstats
path: root/base/mime_util_xdg.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:32:31 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:32:31 +0000
commit4c9af7049b3d2bc242fcee0e804ed71e85f5e543 (patch)
tree38d8228bc0e1a46a84ffe7d45044f978107e82bf /base/mime_util_xdg.cc
parent097dde28cb2f5967871351232406ebb7ec317ad3 (diff)
downloadchromium_src-4c9af7049b3d2bc242fcee0e804ed71e85f5e543.zip
chromium_src-4c9af7049b3d2bc242fcee0e804ed71e85f5e543.tar.gz
chromium_src-4c9af7049b3d2bc242fcee0e804ed71e85f5e543.tar.bz2
GTK: 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 Review URL: http://codereview.chromium.org/2985006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mime_util_xdg.cc')
0 files changed, 0 insertions, 0 deletions