diff options
author | msarett <msarett@google.com> | 2016-06-09 11:03:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-09 11:03:45 -0700 |
commit | 804b461bc4fe3cfd959fc065c1c0b524ef96e90b (patch) | |
tree | b8b40ed99e3f8c58cd31e96bb4e6a0ef248a03f6 /include/core/SkPixmap.h | |
parent | 96e4e1ca5a7dbe08b396817da30adfa3ecfd438c (diff) |
SkPixmap::setColorSpace
Landed for reed@ with bug fix:
Use default copy constructor for SkDraw
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2057563002
patch from issue 2057563002 at patchset 1 (http://crrev.com/2057563002#ps1)
Review-Url: https://codereview.chromium.org/2052943002
Diffstat (limited to 'include/core/SkPixmap.h')
-rw-r--r-- | include/core/SkPixmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h index c3c27bec78..699ddb4d44 100644 --- a/include/core/SkPixmap.h +++ b/include/core/SkPixmap.h @@ -44,6 +44,9 @@ public: this->reset(info, NULL, 0, NULL); } + // overrides the colorspace in the SkImageInfo of the pixmap + void setColorSpace(sk_sp<SkColorSpace>); + /** * If supported, set this pixmap to point to the pixels in the specified mask and return true. * On failure, return false and set this pixmap to empty. |