diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 16:52:36 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-16 16:52:36 +0000 |
commit | de2baedbb8df526db72fb6ddc151e9435db8b78f (patch) | |
tree | b31900fe03fd0421907ae79f1216f5b55042363f /base/gfx | |
parent | 6deb272a76b6214157cb9dec271e4c4e1a6d3e8f (diff) | |
download | chromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.zip chromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.tar.gz chromium_src-de2baedbb8df526db72fb6ddc151e9435db8b78f.tar.bz2 |
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
Review URL: http://codereview.chromium.org/67179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rwxr-xr-x | base/gfx/gtk_util.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/base/gfx/gtk_util.cc b/base/gfx/gtk_util.cc index 0d2eee0..c307976 100755 --- a/base/gfx/gtk_util.cc +++ b/base/gfx/gtk_util.cc @@ -77,8 +77,6 @@ GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap) { 8, width, height, stride, &FreePixels, data); - // Assume ownership of pixbuf. - g_object_ref_sink(pixbuf); bitmap->unlockPixels(); return pixbuf; } |