| Index: content/common/image_decoder.mojom
|
| diff --git a/content/common/image_decoder.mojom b/content/common/image_decoder.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e7f4f6d61213c230f32c9b842364003c99bf2b7e
|
| --- /dev/null
|
| +++ b/content/common/image_decoder.mojom
|
| @@ -0,0 +1,31 @@
|
| +module content;
|
| +
|
| +// These must match SkColorType
|
| +//enum ColorType {
|
| +//};
|
| +
|
| +// These must match SkAlphaType
|
| +//enum AlphaType {
|
| +//};
|
| +
|
| +struct ImageData {
|
| +// ColorType color_type;
|
| +// AlphaType alpha_type;
|
| + uint32 color_type;
|
| + uint32 alpha_type;
|
| +
|
| + uint32 width;
|
| + uint32 height;
|
| +
|
| + array<uint8> pixels;
|
| +};
|
| +
|
| +interface ImageDecoder {
|
| + DecodeImage(array<uint8> encoded_data,
|
| + bool use_robust_jpeg,
|
| + bool shrink_to_fit)
|
| + => (bool success, ImageData? decoded_image);
|
| +
|
| + DecodeImageBase64(string encoded_data)
|
| + => (bool success, ImageData? decoded_image);
|
| +};
|
|
|