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

Unified 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: Rebase against master for bots 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 side-by-side diff with in-line comments
Download patch
Index: cc/ipc/filter_operation.mojom
diff --git a/cc/ipc/filter_operation.mojom b/cc/ipc/filter_operation.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6bcb0733cc1b7887241537b1edfd88dc97d526d3
--- /dev/null
+++ b/cc/ipc/filter_operation.mojom
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module cc.mojom;
+
+import "skia/public/interfaces/image_filter.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+enum FilterType {
+ GRAYSCALE,
+ SEPIA,
+ SATURATE,
+ HUE_ROTATE,
+ INVERT,
+ BRIGHTNESS,
+ CONTRAST,
+ OPACITY,
+ BLUR,
+ DROP_SHADOW,
+ COLOR_MATRIX,
+ ZOOM,
+ REFERENCE,
+ SATURATING_BRIGHTNESS, // Not used in CSS/SVG.
+ ALPHA_THRESHOLD, // Not used in CSS/SVG.
+ FILTER_TYPE_LAST = ALPHA_THRESHOLD
+};
+
+// See cc/output/filter_operation.h.
+struct FilterOperation {
+ FilterType type;
+ float amount;
+ 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
+ uint32 drop_shadow_color;
+ skia.mojom.ImageFilter? image_filter;
yzshen1 2016/06/08 16:25:16 Ditto.
Fady Samuel 2016/06/08 17:04:19 Done.
+ array<float, 20>? matrix;
+ int32 zoom_inset;
+ // Note: SkRegion is currently not needed for serialization.
+};
+

Powered by Google App Engine
This is Rietveld 408576698