OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains structures used to represent SkBitmaps in Mojo. | 5 // This file contains structures used to represent SkBitmaps in Mojo. |
6 module skia.mojom; | 6 module skia.mojom; |
7 | 7 |
8 // Mirror of SkColorType. | 8 // Mirror of SkColorType. |
9 enum ColorType { | 9 enum ColorType { |
10 UNKNOWN, | 10 UNKNOWN, |
(...skipping 21 matching lines...) Expand all Loading... |
32 }; | 32 }; |
33 | 33 |
34 struct Bitmap { | 34 struct Bitmap { |
35 ColorType color_type; | 35 ColorType color_type; |
36 AlphaType alpha_type; | 36 AlphaType alpha_type; |
37 ColorProfileType profile_type; | 37 ColorProfileType profile_type; |
38 | 38 |
39 uint32 width; | 39 uint32 width; |
40 uint32 height; | 40 uint32 height; |
41 | 41 |
42 array<uint8> pixel_data; | 42 array<uint8>? pixel_data; |
43 }; | 43 }; |
OLD | NEW |