OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "skia/public/interfaces/image_filter.mojom"; | 7 import "skia/public/interfaces/image_filter.mojom"; |
8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 | 9 |
10 enum FilterType { | 10 enum FilterType { |
11 GRAYSCALE, | 11 GRAYSCALE, |
12 SEPIA, | 12 SEPIA, |
13 SATURATE, | 13 SATURATE, |
14 HUE_ROTATE, | 14 HUE_ROTATE, |
15 INVERT, | 15 INVERT, |
16 BRIGHTNESS, | 16 BRIGHTNESS, |
17 CONTRAST, | 17 CONTRAST, |
18 OPACITY, | 18 OPACITY, |
19 BLUR, | 19 BLUR, |
20 DROP_SHADOW, | 20 DROP_SHADOW, |
21 COLOR_MATRIX, | 21 COLOR_MATRIX, |
22 ZOOM, | 22 ZOOM, |
23 REFERENCE, | 23 REFERENCE, |
24 SATURATING_BRIGHTNESS, | 24 SATURATING_BRIGHTNESS, |
25 ALPHA_THRESHOLD, | 25 ALPHA_THRESHOLD, |
26 FILTER_TYPE_LAST = ALPHA_THRESHOLD | 26 FILTER_TYPE_LAST = ALPHA_THRESHOLD |
27 }; | 27 }; |
28 | 28 |
29 // See cc/output/filter_operation.h. | 29 // See cc/base/filter_operation.h. |
30 struct FilterOperation { | 30 struct FilterOperation { |
31 FilterType type; | 31 FilterType type; |
32 float amount; | 32 float amount; |
33 gfx.mojom.Point drop_shadow_offset; | 33 gfx.mojom.Point drop_shadow_offset; |
34 uint32 drop_shadow_color; | 34 uint32 drop_shadow_color; |
35 skia.mojom.ImageFilter image_filter; | 35 skia.mojom.ImageFilter image_filter; |
36 array<float, 20>? matrix; | 36 array<float, 20>? matrix; |
37 int32 zoom_inset; | 37 int32 zoom_inset; |
38 // Note: SkRegion is currently not needed for serialization. | 38 // Note: SkRegion is currently not needed for serialization. |
39 }; | 39 }; |
40 | 40 |
OLD | NEW |