Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Side by Side Diff: content/common/image_decoder.mojom

Issue 865543002: WIP: Browser image decoding using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add DecodeImageBase64. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/content_common_mojo_bindings.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 module content;
2
3 // These must match SkColorType
4 //enum ColorType {
5 //};
6
7 // These must match SkAlphaType
8 //enum AlphaType {
9 //};
10
11 struct ImageData {
12 // ColorType color_type;
13 // AlphaType alpha_type;
14 uint32 color_type;
15 uint32 alpha_type;
16
17 uint32 width;
18 uint32 height;
19
20 array<uint8> pixels;
21 };
22
23 interface ImageDecoder {
24 DecodeImage(array<uint8> encoded_data,
25 bool use_robust_jpeg,
26 bool shrink_to_fit)
27 => (bool success, ImageData? decoded_image);
28
29 DecodeImageBase64(string encoded_data)
30 => (bool success, ImageData? decoded_image);
31 };
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/content_common_mojo_bindings.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698