diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 02:31:58 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 02:31:58 +0000 |
commit | 576d7890bed1717e3b7f05d9527e7a7659c7e000 (patch) | |
tree | 6d0d4f2677f4fcb1371a93376089ada71dfec280 /gfx | |
parent | d73545f4f8b2a7c6673da4b58591db5be775a4bd (diff) | |
download | chromium_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.h | 3 |
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. |