| Index: include/codec/SkAndroidCodec.h
|
| diff --git a/include/codec/SkAndroidCodec.h b/include/codec/SkAndroidCodec.h
|
| index f979886a43ec33c573de3553b49651a8a06d7025..f5f82793187f19cbd6b097c1e59a6fdf3c6963f8 100644
|
| --- a/include/codec/SkAndroidCodec.h
|
| +++ b/include/codec/SkAndroidCodec.h
|
| @@ -53,6 +53,24 @@ public:
|
| SkEncodedFormat getEncodedFormat() const { return this->onGetEncodedFormat(); }
|
|
|
| /**
|
| + * @param requestedColorType Color type requested by the client
|
| + *
|
| + * If it is possible to decode to requestedColorType, this returns
|
| + * requestedColorType. Otherwise, this returns whichever color type
|
| + * is suggested by the codec as the best match for the encoded data.
|
| + */
|
| + SkColorType computeOutputColorType(SkColorType requestedColorType);
|
| +
|
| + /**
|
| + * @param requestedUnpremul Indicates if the client requested
|
| + * unpremultiplied output
|
| + *
|
| + * Returns the appropriate alpha type to decode to. If the image
|
| + * has alpha, the value of requestedUnpremul will be honored.
|
| + */
|
| + SkAlphaType computeOutputAlphaType(bool requestedUnpremul);
|
| +
|
| + /**
|
| * Returns the dimensions of the scaled output image, for an input
|
| * sampleSize.
|
| *
|
|
|