Index: components/image_decoder/public/interfaces/image_decoder.mojom |
diff --git a/components/image_decoder/public/interfaces/image_decoder.mojom b/components/image_decoder/public/interfaces/image_decoder.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9fe5d57f97dac756b4185cb9ee19c0824a42a932 |
--- /dev/null |
+++ b/components/image_decoder/public/interfaces/image_decoder.mojom |
@@ -0,0 +1,17 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module image_decoder; |
+ |
+import "skia/public/interfaces/bitmap.mojom"; |
+ |
+enum ImageCodec { |
+ DEFAULT, |
+ ROBUST_JPEG, |
+}; |
+ |
+interface ImageDecoder { |
+ DecodeImage(array<uint8> encoded_data, ImageCodec codec, bool shrink_to_fit) |
+ => (skia.Bitmap? decoded_image); |
+}; |