summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 02:31:58 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 02:31:58 +0000
commit576d7890bed1717e3b7f05d9527e7a7659c7e000 (patch)
tree6d0d4f2677f4fcb1371a93376089ada71dfec280 /gfx
parentd73545f4f8b2a7c6673da4b58591db5be775a4bd (diff)
downloadchromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.zip
chromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.tar.gz
chromium_src-576d7890bed1717e3b7f05d9527e7a7659c7e000.tar.bz2
Linux: Fix some GdkPixbuf leaks.
Also expand some documentation for functions that returned a GdkPixbuf about who owns the reference BUG=38895 TEST=manual test that nothing is broken, will watch bot for leak results Review URL: http://codereview.chromium.org/1075014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gtk_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/gtk_util.h b/gfx/gtk_util.h
index a958d67..3a30ad9 100644
--- a/gfx/gtk_util.h
+++ b/gfx/gtk_util.h
@@ -35,7 +35,8 @@ extern const GdkColor kGdkBlack;
extern const GdkColor kGdkGreen;
// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: this uses BGRAToRGBA, so
-// it is an expensive operation.
+// it is an expensive operation. The returned GdkPixbuf will have a refcount of
+// 1, and the caller is responsible for unrefing it when done.
GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap* bitmap);
// Modify the given region by subtracting the given rectangles.