summaryrefslogtreecommitdiffstats
path: root/gfx/gtk_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gtk_util.h')
-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.