OLD | NEW |
(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 |
OLD | NEW |