aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBitmap.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-12-09 11:36:59 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-09 11:36:59 -0800
commite36ec871768eb4f5372540c1167ff7ec592f2bec (patch)
treef3da0b29547ac67af113c9d90de6d66745c4c887 /include/core/SkBitmap.h
parentcd0749144383d78a10a5df00e2e96e76456b412b (diff)
SkBitmap::installPixels(const SkPixmap&);
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r--include/core/SkBitmap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index eda13b3c52..cf1c4c77f2 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -295,6 +295,14 @@ public:
}
/**
+ * Call installPixels with no ReleaseProc specified. This means
+ * that the caller must ensure that the specified pixels and
+ * colortable are valid for the lifetime of the created bitmap
+ * (and its pixelRef).
+ */
+ bool installPixels(const SkPixmap&);
+
+ /**
* Calls installPixels() with the value in the SkMask. The caller must
* ensure that the specified mask pixels are valid for the lifetime
* of the created bitmap (and its pixelRef).