Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Issue 179003: Add a fast path for tab strip expose. (Closed)

Created:
11 years, 3 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
James Hawkins
CC:
chromium-reviews_googlegroups.com, Evan Martin
Visibility:
Public.

Description

Add a fast path for tab strip expose. This optimizes the common case of just needing to update favicons. If the expose area consists of just favicons, only paint the favicons (i.e., don't bother with the complex tab edges that overlap). This doesn't help when tabs are resizing or moving, but does reduce CPU usage quite a bit. BUG=15872

Patch Set 1 #

Total comments: 1

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -2 lines) Patch
M chrome/browser/gtk/tabs/tab_renderer_gtk.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_renderer_gtk.cc View 3 chunks +43 lines, -1 line 0 comments Download
M chrome/browser/gtk/tabs/tab_strip_gtk.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_strip_gtk.cc View 4 chunks +59 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
tony
Here are pprof graphs from before and after the change: http://ponderer.org/tests/perf/tabstrip-before.ps http://ponderer.org/tests/perf/tabstrip-after.ps This is with ...
11 years, 3 months ago (2009-08-27 21:11:38 UTC) #1
James Hawkins
11 years, 3 months ago (2009-08-27 21:22:52 UTC) #2
LGTM

http://codereview.chromium.org/179003/diff/1/5
File chrome/browser/gtk/tabs/tab_strip_gtk.h (right):

http://codereview.chromium.org/179003/diff/1/5#newcode254
Line 254: // Returns true of |rects| are all areas that match up with tab
favicons.
s/of/if/ ?

Powered by Google App Engine
This is Rietveld 408576698