aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImageGenerator.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-12-16 11:55:18 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-16 18:09:02 +0000
commit138ea97c1acaed4b968540220724dd5bf671e8db (patch)
treebd98e545885ec57bf16cc457e10766655b2fec22 /include/core/SkImageGenerator.h
parent8ced688a3a3489ac696e5ee2d10557b389fd4ebf (diff)
Add color space to picture image as a creation parameter
This gives a picture image a preferred "native" color space, which facilitates caching and other things. BUG=skia: Change-Id: I95988c14d17f96d7d870b3d1c3b723c36e2c170d Reviewed-on: https://skia-review.googlesource.com/6158 Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core/SkImageGenerator.h')
-rw-r--r--include/core/SkImageGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index eace286828..0d24d3a8c3 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -241,7 +241,7 @@ public:
* time.
*/
static SkImageGenerator* NewFromPicture(const SkISize&, const SkPicture*, const SkMatrix*,
- const SkPaint*);
+ const SkPaint*, sk_sp<SkColorSpace>);
bool tryGenerateBitmap(SkBitmap* bm, const SkImageInfo& info, SkBitmap::Allocator* allocator);