diff options
author | Matt Sarett <msarett@google.com> | 2017-01-09 12:38:59 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-09 18:14:06 +0000 |
commit | e94255d456ad86e045e0c3aeab57395566cf49a5 (patch) | |
tree | 27b9b6c790015aeb696a96d96cfb46ab7bd7554f /include/core/SkImageGenerator.h | |
parent | a16339297859f37df69230e64f05624cef511ad3 (diff) |
Specify bit depth and color space in SkImage::MakeFromPicture()
BUG=skia:
Change-Id: I1d2a2b1f97557fc3e7ca6c2bdad6329f7760dbd2
Reviewed-on: https://skia-review.googlesource.com/6685
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkImageGenerator.h')
-rw-r--r-- | include/core/SkImageGenerator.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h index 0ab27aea2f..aec940f259 100644 --- a/include/core/SkImageGenerator.h +++ b/include/core/SkImageGenerator.h @@ -10,6 +10,7 @@ #include "SkBitmap.h" #include "SkColor.h" +#include "SkImage.h" #include "SkImageInfo.h" #include "SkYUVSizeInfo.h" @@ -19,8 +20,6 @@ class GrTexture; class GrSamplerParams; class SkBitmap; class SkData; -class SkImage; -class SkImageGenerator; class SkMatrix; class SkPaint; class SkPicture; @@ -228,7 +227,7 @@ public: * time. */ static SkImageGenerator* NewFromPicture(const SkISize&, const SkPicture*, const SkMatrix*, - const SkPaint*, sk_sp<SkColorSpace>); + const SkPaint*, SkImage::BitDepth, sk_sp<SkColorSpace>); bool tryGenerateBitmap(SkBitmap* bm, const SkImageInfo& info, SkBitmap::Allocator* allocator); |