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

Side by Side Diff: cc/ipc/filter_operation.mojom

Issue 2042413003: Implement cc::FilterOperation StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « cc/ipc/BUILD.gn ('k') | cc/ipc/filter_operation.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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.
enne (OOO) 2016/06/08 18:06:52 I'm not sure it's worth perpetuating this comment.
Fady Samuel 2016/06/08 19:23:20 Done.
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;
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
OLDNEW
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/filter_operation.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698