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

Issue 67179: Have ResourceBundle own GdkPixbufs. (Closed)

Created:
11 years, 8 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Dean McNamee
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Have ResourceBundle own GdkPixbufs. This is the same as how ResourceBundle owns the SkBitmaps it loads. This should be faster than before because ResourceBundle will only load each bitmap once and cache the image. Also fix a memory leak in GdkPixbufFromSkBitmap. valgrind says we're not leaking here. BUG=9988

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : review comments #

Patch Set 4 : null #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -123 lines) Patch
M base/gfx/gtk_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.cc View 1 2 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/gtk/custom_button.cc View 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 1 chunk +36 lines, -36 lines 0 comments Download
M chrome/browser/gtk/download_shelf_gtk.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/gtk/gtk_chrome_button.cc View 1 chunk +18 lines, -18 lines 0 comments Download
M chrome/browser/gtk/infobar_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/nine_box.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/resource_bundle.h View 4 chunks +17 lines, -6 lines 0 comments Download
M chrome/common/resource_bundle_linux.cc View 1 2 3 3 chunks +83 lines, -18 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
tony
11 years, 8 months ago (2009-04-15 18:37:19 UTC) #1
Dean McNamee
mostly ok... http://codereview.chromium.org/67179/diff/23/1003 File chrome/browser/gtk/bookmark_bar_gtk.cc (right): http://codereview.chromium.org/67179/diff/23/1003#newcode92 Line 92: folder_icon_ = rb.GetPixbufNamed(IDR_BOOKMARK_BAR_FOLDER); should these just ...
11 years, 8 months ago (2009-04-15 19:01:49 UTC) #2
tony
http://codereview.chromium.org/67179/diff/23/1003 File chrome/browser/gtk/bookmark_bar_gtk.cc (right): http://codereview.chromium.org/67179/diff/23/1003#newcode92 Line 92: folder_icon_ = rb.GetPixbufNamed(IDR_BOOKMARK_BAR_FOLDER); On 2009/04/15 19:01:49, Dean McNamee ...
11 years, 8 months ago (2009-04-15 19:43:33 UTC) #3
Dean McNamee
11 years, 8 months ago (2009-04-15 19:58:17 UTC) #4
LG

http://codereview.chromium.org/67179/diff/42/55
File chrome/common/resource_bundle_linux.cc (right):

http://codereview.chromium.org/67179/diff/42/55#newcode36
Line 36: return NULL;
we'll leak the loader, but I guess I'm ok w/ that.  Making a scoped is kinda
overkill.

Powered by Google App Engine
This is Rietveld 408576698