diff options
author | Matt Sarett <msarett@google.com> | 2017-02-14 13:50:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-14 21:32:10 +0000 |
commit | 9df70bb74db8294283e8d2d8e20c95d290d2a34d (patch) | |
tree | 47f70a2a36d254599db76e77cb6c93a31b895b7d /include | |
parent | 6f449692c148c6b36d65c4bfa2941e3b09e25c38 (diff) |
Picture backed images must have a bit depth and color space
Enforce that picture backed images created by the public API
must have a non-null SkColorSpace.
SkPictureShader uses a private call to get around this restriction.
BUG=skia:
Change-Id: I2fc11a8ffe583035d09e83abf40b827fbf575321
Reviewed-on: https://skia-review.googlesource.com/8415
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index cb025468f0..aaafb44c42 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -161,14 +161,6 @@ public: /** * Create a new image from the specified picture. - * This SkImage has no defined BitDepth or SkColorSpace, it is a flexible container for - * draw commands. - */ - static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture> picture, const SkISize& dimensions, - const SkMatrix* matrix, const SkPaint* paint); - - /** - * Create a new image from the specified picture. * On creation of the SkImage, snap the SkPicture to a particular BitDepth and SkColorSpace. */ static sk_sp<SkImage> MakeFromPicture(sk_sp<SkPicture>, const SkISize& dimensions, |