aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/android/SkBitmapRegionCodec.h
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-04-14 09:23:45 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-14 13:59:35 +0000
commit479366cd148136dd0e5657ffc5816ab30f18fa3c (patch)
tree79094988b0a87c5d38b978558618fdf5043f5fe5 /src/android/SkBitmapRegionCodec.h
parent7a34dca6c859b88e4870800e812247e95520a87b (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 'src/android/SkBitmapRegionCodec.h')
-rw-r--r--src/android/SkBitmapRegionCodec.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/android/SkBitmapRegionCodec.h b/src/android/SkBitmapRegionCodec.h
index baaecc937a..a7cfe33a91 100644
--- a/src/android/SkBitmapRegionCodec.h
+++ b/src/android/SkBitmapRegionCodec.h
@@ -32,6 +32,15 @@ public:
SkEncodedImageFormat getEncodedFormat() override { return fCodec->getEncodedFormat(); }
+ SkColorType computeOutputColorType(SkColorType requestedColorType) override {
+ return fCodec->computeOutputColorType(requestedColorType);
+ }
+
+ sk_sp<SkColorSpace> computeOutputColorSpace(SkColorType outputColorType,
+ sk_sp<SkColorSpace> prefColorSpace = nullptr) override {
+ return fCodec->computeOutputColorSpace(outputColorType, prefColorSpace);
+ }
+
private:
std::unique_ptr<SkAndroidCodec> fCodec;