diff options
author | 2014-01-13 20:28:50 +0000 | |
---|---|---|
committer | 2014-01-13 20:28:50 +0000 | |
commit | f0b56e74485d59465194b21f89fa3bc3a7962ac6 (patch) | |
tree | 7c8922e9ebead92d3d1ef93bbcd378c4eb3b05fb /include/core/SkBitmap.h | |
parent | 9b06ba4c91484d09565ff4a572d8c5af15dd429e (diff) |
Revert "Revert of https://codereview.chromium.org/129423002/"
fixed new api references in unit tests
This reverts commit ffc0058e1fbcbd69617e1f41b2dce5b5765ff99e.
BUG=
Review URL: https://codereview.chromium.org/132643007
git-svn-id: http://skia.googlecode.com/svn/trunk@13057 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r-- | include/core/SkBitmap.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index b8117bd76f..1cb4fd7f35 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -268,6 +268,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. |