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

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: Rebased + Addressed Enne's comment 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
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | cc/ipc/filter_operation.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9afefd91aa405003911db754411249b4a8bfcb66
--- /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,
+ ALPHA_THRESHOLD,
+ FILTER_TYPE_LAST = ALPHA_THRESHOLD
+};
+
+// See cc/output/filter_operation.h.
+struct FilterOperation {
+ FilterType type;
+ float amount;
+ gfx.mojom.Point drop_shadow_offset;
+ uint32 drop_shadow_color;
+ skia.mojom.ImageFilter image_filter;
+ array<float, 20>? matrix;
+ int32 zoom_inset;
+ // Note: SkRegion is currently not needed for serialization.
+};
+
« 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