Index: include/core/SkBitmap.h |
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h |
index fe0fc0f9c1b9483542394099f28442a61bdbf282..ea39fa1f90b1e0a535316e38476f1ca6a8fa526a 100644 |
--- a/include/core/SkBitmap.h |
+++ b/include/core/SkBitmap.h |
@@ -288,6 +288,16 @@ public: |
*/ |
void setPixels(void* p, SkColorTable* ctable = NULL); |
+ /** |
+ * Install the specified pixelref into the bitmap, with an optional rect |
+ * for referencing a subset of the pixels in the pixelref. This sets the |
+ * config/width/height/alphatype of the bitmap to match the pixelref. |
+ * |
+ * The subset rect, if not null, is intersected with the bounds of the |
+ * pixelref (taken from its SkImageInfo). |
+ */ |
+ SkPixelRef* installPixelRef(SkPixelRef*, const SkIRect* subset = NULL); |
+ |
/** Copies the bitmap's pixels to the location pointed at by dst and returns |
true if possible, returns false otherwise. |