Index: include/core/SkImage.h |
diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
index 7557e8e41dd9ffcad9f6e62a633ccb76b8472e70..41a1bd85272f163bb5e5a2135ad353ff92cf897b 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 |
+ * its pixel memory is shareable, 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. |