aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/android/SkBitmapRegionDecoder.h
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-04-11 09:51:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-11 14:27:28 +0000
commit68feef423dfa1f3e2e6e9b0f4df1027f6e8645b1 (patch)
tree39da66c24218258f5b8abb1c64a7a236ab1529e4 /include/android/SkBitmapRegionDecoder.h
parent3fbca26e9c0e6e3c27c9dd437c9f790a31f20675 (diff)
Allow BF and BRD clients to request an output color space
Bug: skia: Change-Id: I0f0d3bfdd5c47544ab71167fd7984ee8e8ac5903 Reviewed-on: https://skia-review.googlesource.com/11601 Commit-Queue: Matt Sarett <msarett@google.com> Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'include/android/SkBitmapRegionDecoder.h')
-rw-r--r--include/android/SkBitmapRegionDecoder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/android/SkBitmapRegionDecoder.h b/include/android/SkBitmapRegionDecoder.h
index 660aa0aefc..841bf8d415 100644
--- a/include/android/SkBitmapRegionDecoder.h
+++ b/include/android/SkBitmapRegionDecoder.h
@@ -55,11 +55,14 @@ public:
* if this color type is unsupported.
* @param requireUnpremul If the image is not opaque, we will use this to determine the
* alpha type to use.
+ * @param prefColorSpace If non-null and supported, this is the color space that we will
+ * decode into. Otherwise, we will choose a default.
*
*/
virtual bool decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocator,
const SkIRect& desiredSubset, int sampleSize,
- SkColorType colorType, bool requireUnpremul) = 0;
+ SkColorType colorType, bool requireUnpremul,
+ sk_sp<SkColorSpace> prefColorSpace = nullptr) = 0;
/*
* @param Requested destination color type
* @return true if we support the requested color type and false otherwise