Chromium Code Reviews| Index: include/core/SkImage.h |
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
| index 7557e8e41dd9ffcad9f6e62a633ccb76b8472e70..bd5ad42c14912c84435b70f63d0aa0dd475581ea 100644 |
| --- a/include/core/SkImage.h |
| +++ b/include/core/SkImage.h |
| @@ -62,6 +62,12 @@ public: |
| RasterReleaseProc, ReleaseContext); |
| /** |
| + * Construct a new image from the specified bitmap. If the bitmap is marked immutable, and |
|
robertphillips
2015/07/06 20:43:47
Supposedly "shareable" prevails by a 2:1 margin in
reed2
2015/07/07 01:18:03
Done.
|
| + * its pixel memory is sharable, it may be shared instead of copied. |
| + */ |
| + static SkImage* NewFromBitmap(const SkBitmap&); |
| + |
| + /** |
| * Construct a new SkImage based on the given ImageGenerator. |
| * This function will always take ownership of the passed |
| * ImageGenerator. Returns NULL on error. |