diff options
author | Matt Sarett <msarett@google.com> | 2017-04-14 09:23:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-14 13:59:35 +0000 |
commit | 479366cd148136dd0e5657ffc5816ab30f18fa3c (patch) | |
tree | 79094988b0a87c5d38b978558618fdf5043f5fe5 /include | |
parent | 7a34dca6c859b88e4870800e812247e95520a87b (diff) |
Let region decoders query the type and color space
b/36905374, b/32984164
Test: CtsGraphicsTestCases
Written by: romainguy@
Change-Id: Ief4bba6ec3cd3446224199d05f06ffcffaaa72b5
Reviewed-on: https://skia-review.googlesource.com/13472
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/android/SkBitmapRegionDecoder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/android/SkBitmapRegionDecoder.h b/include/android/SkBitmapRegionDecoder.h index 841bf8d415..df0c370338 100644 --- a/include/android/SkBitmapRegionDecoder.h +++ b/include/android/SkBitmapRegionDecoder.h @@ -71,6 +71,12 @@ public: virtual SkEncodedImageFormat getEncodedFormat() = 0; + virtual SkColorType computeOutputColorType(SkColorType requestedColorType) = 0; + + virtual sk_sp<SkColorSpace> computeOutputColorSpace(SkColorType outputColorType, + sk_sp<SkColorSpace> prefColorSpace = nullptr) = 0; + + int width() const { return fWidth; } int height() const { return fHeight; } |