diff options
author | 2015-12-09 11:36:59 -0800 | |
---|---|---|
committer | 2015-12-09 11:36:59 -0800 | |
commit | e36ec871768eb4f5372540c1167ff7ec592f2bec (patch) | |
tree | f3da0b29547ac67af113c9d90de6d66745c4c887 /include/core/SkBitmap.h | |
parent | cd0749144383d78a10a5df00e2e96e76456b412b (diff) |
SkBitmap::installPixels(const SkPixmap&);
Review URL: https://codereview.chromium.org/1505333002
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r-- | include/core/SkBitmap.h | 8 |
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). |