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

Issue 195071: GTK: Cache our GdkCursor objects, since building them hits the disk. (Closed)

Created:
11 years, 3 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

GTK: Cache our GdkCursor objects, since building them hits the disk. TEST=strace chrome. Moving the mouse over the webpage shouldn't spew open() calls. BUG=21623 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26061

Patch Set 1 #

Total comments: 2

Patch Set 2 : Maybe fix mac compile? #

Patch Set 3 : Put in gtk_util #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
M chrome/browser/gtk/browser_window_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/gtk_chrome_link_button.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/gtk_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/gtk_util.cc View 2 chunks +37 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
11 years, 3 months ago (2009-09-11 23:08:41 UTC) #1
Evan Stade
Since you're really just exposing a single static function, it feels like this belongs as ...
11 years, 3 months ago (2009-09-11 23:17:48 UTC) #2
Elliot Glaysher
On 2009/09/11 23:17:48, Evan Stade wrote: > Since you're really just exposing a single static ...
11 years, 3 months ago (2009-09-12 00:34:09 UTC) #3
Evan Stade
lgtm, thanks
11 years, 3 months ago (2009-09-12 00:35:20 UTC) #4
Evan Martin
http://codereview.chromium.org/195071/diff/4001/5004 File chrome/common/gtk_util.cc (right): http://codereview.chromium.org/195071/diff/4001/5004#newcode86 Line 86: gdk_cursor_ref(cursor); Won't this cause a +2 refcount on ...
11 years, 3 months ago (2009-09-12 00:37:05 UTC) #5
Evan Martin
NM, I see the cache owns a ref as well. LGTM
11 years, 3 months ago (2009-09-12 00:38:58 UTC) #6
Elliot Glaysher
11 years, 3 months ago (2009-09-12 00:52:48 UTC) #7
Clarified the comment in what I committed.

On Fri, Sep 11, 2009 at 5:38 PM,  <evan@chromium.org> wrote:
> NM, I see the cache owns a ref as well. =A0LGTM
>
> http://codereview.chromium.org/195071
>

Powered by Google App Engine
This is Rietveld 408576698