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

Side by Side Diff: components/mus/public/interfaces/quads.mojom

Issue 2011263002: Implement RenderPassId StructTrait (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mus.mojom; 5 module mus.mojom;
6 6
7 import "cc/ipc/render_pass_id.mojom";
7 import "cc/ipc/surface_id.mojom"; 8 import "cc/ipc/surface_id.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 9 import "ui/gfx/geometry/mojo/geometry.mojom";
9 10
10 struct Color { 11 struct Color {
11 uint32 rgba; 12 uint32 rgba;
12 }; 13 };
13 14
14 struct CheckerboardQuadState { 15 struct CheckerboardQuadState {
15 // Checkerboard color. 16 // Checkerboard color.
16 Color color; 17 Color color;
17 18
18 // The scale factor of checkers. Chromium uses device scale factor for 19 // The scale factor of checkers. Chromium uses device scale factor for
19 // it. 20 // it.
20 float scale; 21 float scale;
21 }; 22 };
22 23
23 struct DebugBorderQuadState { 24 struct DebugBorderQuadState {
24 // Debug border color. 25 // Debug border color.
25 Color color; 26 Color color;
26 27
27 // Debug border width. 28 // Debug border width.
28 int32 width; 29 int32 width;
29 }; 30 };
30 31
31 // TODO(jamesr): Populate subtype fields. 32 // TODO(jamesr): Populate subtype fields.
32 struct IoSurfaceContentQuadState {}; 33 struct IoSurfaceContentQuadState {};
33 34
34 struct RenderPassId {
35 int32 layer_id;
36 uint32 index;
37 };
38
39 struct RenderPassQuadState { 35 struct RenderPassQuadState {
40 RenderPassId render_pass_id; 36 cc.mojom.RenderPassId render_pass_id;
41 37
42 // If nonzero, resource id of mask to use when drawing this pass. 38 // If nonzero, resource id of mask to use when drawing this pass.
43 uint32 mask_resource_id; 39 uint32 mask_resource_id;
44 mojo.PointF mask_uv_scale; 40 mojo.PointF mask_uv_scale;
45 mojo.Size mask_texture_size; 41 mojo.Size mask_texture_size;
46 42
47 // Post-processing filters, applied to the pixels in the render pass' texture. 43 // Post-processing filters, applied to the pixels in the render pass' texture.
48 // TODO(jamesr): Support 44 // TODO(jamesr): Support
49 // FilterOperations filters; 45 // FilterOperations filters;
50 46
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // This rect lives in the target content space. 209 // This rect lives in the target content space.
214 mojo.Rect clip_rect; 210 mojo.Rect clip_rect;
215 211
216 bool is_clipped; 212 bool is_clipped;
217 float opacity; 213 float opacity;
218 SkXfermode blend_mode; 214 SkXfermode blend_mode;
219 int32 sorting_context_id; 215 int32 sorting_context_id;
220 }; 216 };
221 217
222 struct Pass { 218 struct Pass {
223 RenderPassId id; 219 cc.mojom.RenderPassId id;
224 mojo.Rect output_rect; 220 mojo.Rect output_rect;
225 mojo.Rect damage_rect; 221 mojo.Rect damage_rect;
226 mojo.Transform transform_to_root_target; 222 mojo.Transform transform_to_root_target;
227 bool has_transparent_background; 223 bool has_transparent_background;
228 array<Quad> quads; 224 array<Quad> quads;
229 array<SharedQuadState> shared_quad_states; 225 array<SharedQuadState> shared_quad_states;
230 }; 226 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698