| 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, |
| 25 ALPHA_THRESHOLD, |
| 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; |
| 34 uint32 drop_shadow_color; |
| 35 skia.mojom.ImageFilter image_filter; |
| 36 array<float, 20>? matrix; |
| 37 int32 zoom_inset; |
| 38 // Note: SkRegion is currently not needed for serialization. |
| 39 }; |
| 40 |
| OLD | NEW |