aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec/SkAndroidCodec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/codec/SkAndroidCodec.h')
-rw-r--r--include/codec/SkAndroidCodec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/codec/SkAndroidCodec.h b/include/codec/SkAndroidCodec.h
index a4f46f939f..ecf0a08c15 100644
--- a/include/codec/SkAndroidCodec.h
+++ b/include/codec/SkAndroidCodec.h
@@ -72,6 +72,16 @@ public:
SkAlphaType computeOutputAlphaType(bool requestedUnpremul);
/**
+ * @param outputColorType Color type that the client will decode to
+ *
+ * Returns the appropriate color space to decode to.
+ *
+ * For now, this just returns a default. This could be updated to take
+ * requests for wide gamut modes or specific output spaces.
+ */
+ sk_sp<SkColorSpace> computeOutputColorSpace(SkColorType outputColorType);
+
+ /**
* Returns the dimensions of the scaled output image, for an input
* sampleSize.
*