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

Unified Diff: cc/ipc/shared_quad_state.mojom

Issue 2032643002: Implement cc::SharedQuadState StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make blend_mode an int in the mojom 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/shared_quad_state.mojom
diff --git a/cc/ipc/shared_quad_state.mojom b/cc/ipc/shared_quad_state.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a72c2a3d16c25830ba8de750545c0c263b091050
--- /dev/null
+++ b/cc/ipc/shared_quad_state.mojom
@@ -0,0 +1,31 @@
+// 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 "ui/gfx/geometry/mojo/geometry.mojom";
+import "ui/gfx/mojo/transform.mojom";
+
+struct SharedQuadState {
+ // gfx.mojom.Transforms quad rects into the target content space.
+ gfx.mojom.Transform quad_to_target_transform;
+
+ // The size of the quads' originating layer in the space of the quad rects.
+ gfx.mojom.Size quad_layer_bounds;
+
+ // The size of the visible area in the quads' originating layer, in the space
+ // of the quad rects.
+ gfx.mojom.Rect visible_quad_layer_rect;
+
+ // This rect lives in the target content space.
+ gfx.mojom.Rect clip_rect;
+
+ bool is_clipped;
+ float opacity;
+ // TODO(fsamuel): Change this to an SkXfermode enum once native enums are
+ // supported.
+ int32 blend_mode;
+ int32 sorting_context_id;
+};
+

Powered by Google App Engine
This is Rietveld 408576698