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

Side by Side Diff: skia/public/interfaces/bitmap.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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 | « net/proxy/mojo_proxy_type_converters.cc ('k') | skia/public/type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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; 6 module skia;
7 7
8 // Mirror of SkColorType. 8 // Mirror of SkColorType.
9 enum ColorType { 9 enum ColorType {
10 UNKNOWN, 10 UNKNOWN,
11 ALPHA_8, 11 ALPHA_8,
12 RGB_565, 12 RGB_565,
13 ARGB_4444, 13 ARGB_4444,
14 RGBA_8888, 14 RGBA_8888,
15 BGRA_8888, 15 BGRA_8888,
16 INDEX_8, 16 INDEX_8,
17 GRAY_8, 17 GRAY_8,
18 }; 18 };
19 19
20 // Mirror of SkAlphaType. 20 // Mirror of SkAlphaType.
21 enum AlphaType { 21 enum AlphaType {
22 UNKNOWN, 22 UNKNOWN,
23 OPAQUE, 23 ALPHA_TYPE_OPAQUE,
24 PREMUL, 24 PREMUL,
25 UNPREMUL, 25 UNPREMUL,
26 }; 26 };
27 27
28 // Mirror of SkColorProfileType. 28 // Mirror of SkColorProfileType.
29 enum ColorProfileType { 29 enum ColorProfileType {
30 LINEAR, 30 LINEAR,
31 SRGB, 31 SRGB,
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 };
OLDNEW
« no previous file with comments | « net/proxy/mojo_proxy_type_converters.cc ('k') | skia/public/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698