Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module cc.mojom; | |
| 6 | |
| 7 import "skia/public/interfaces/image_filter.mojom"; | |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 9 | |
| 10 enum FilterType { | |
| 11 GRAYSCALE, | |
| 12 SEPIA, | |
| 13 SATURATE, | |
| 14 HUE_ROTATE, | |
| 15 INVERT, | |
| 16 BRIGHTNESS, | |
| 17 CONTRAST, | |
| 18 OPACITY, | |
| 19 BLUR, | |
| 20 DROP_SHADOW, | |
| 21 COLOR_MATRIX, | |
| 22 ZOOM, | |
| 23 REFERENCE, | |
| 24 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. | |
| 25 ALPHA_THRESHOLD, // Not used in CSS/SVG. | |
| 26 FILTER_TYPE_LAST = ALPHA_THRESHOLD | |
| 27 }; | |
| 28 | |
| 29 // See cc/output/filter_operation.h. | |
| 30 struct FilterOperation { | |
| 31 FilterType type; | |
| 32 float amount; | |
| 33 gfx.mojom.Point? drop_shadow_offset; | |
|
yzshen1
2016/06/08 16:25:16
the custom type gfx::Point doesn't support null st
Fady Samuel
2016/06/08 17:04:19
I've made it non-optional for now, but really it s
yzshen1
2016/06/08 17:09:51
One way is to make the custom type support null st
| |
| 34 uint32 drop_shadow_color; | |
| 35 skia.mojom.ImageFilter? image_filter; | |
|
yzshen1
2016/06/08 16:25:16
Ditto.
Fady Samuel
2016/06/08 17:04:19
Done.
| |
| 36 array<float, 20>? matrix; | |
| 37 int32 zoom_inset; | |
| 38 // Note: SkRegion is currently not needed for serialization. | |
| 39 }; | |
| 40 | |
| OLD | NEW |