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

Side by Side 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 unified diff | Download patch
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 "ui/gfx/geometry/mojo/geometry.mojom";
8 import "ui/gfx/mojo/transform.mojom";
9
10 struct SharedQuadState {
11 // gfx.mojom.Transforms quad rects into the target content space.
12 gfx.mojom.Transform quad_to_target_transform;
13
14 // The size of the quads' originating layer in the space of the quad rects.
15 gfx.mojom.Size quad_layer_bounds;
16
17 // The size of the visible area in the quads' originating layer, in the space
18 // of the quad rects.
19 gfx.mojom.Rect visible_quad_layer_rect;
20
21 // This rect lives in the target content space.
22 gfx.mojom.Rect clip_rect;
23
24 bool is_clipped;
25 float opacity;
26 // TODO(fsamuel): Change this to an SkXfermode enum once native enums are
27 // supported.
28 int32 blend_mode;
29 int32 sorting_context_id;
30 };
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698