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

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

Issue 2014233002: Implement cc::SurfaceId StructTraits (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 "components/mus/public/interfaces/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 struct Color { 10 struct Color {
11 uint32 rgba; 11 uint32 rgba;
12 }; 12 };
13 13
14 struct CheckerboardQuadState { 14 struct CheckerboardQuadState {
15 // Checkerboard color. 15 // Checkerboard color.
16 Color color; 16 Color color;
17 17
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // TODO(jamesr): Support 59 // TODO(jamesr): Support
60 // FilterOperations background_filters; 60 // FilterOperations background_filters;
61 }; 61 };
62 62
63 struct SolidColorQuadState { 63 struct SolidColorQuadState {
64 Color color; 64 Color color;
65 bool force_anti_aliasing_off; 65 bool force_anti_aliasing_off;
66 }; 66 };
67 67
68 struct SurfaceQuadState { 68 struct SurfaceQuadState {
69 mus.mojom.SurfaceId surface; 69 cc.mojom.SurfaceId surface;
70 }; 70 };
71 71
72 struct TextureQuadState { 72 struct TextureQuadState {
73 uint32 resource_id; 73 uint32 resource_id;
74 bool premultiplied_alpha; 74 bool premultiplied_alpha;
75 mojo.PointF uv_top_left; 75 mojo.PointF uv_top_left;
76 mojo.PointF uv_bottom_right; 76 mojo.PointF uv_bottom_right;
77 Color background_color; 77 Color background_color;
78 array<float, 4> vertex_opacity; 78 array<float, 4> vertex_opacity;
79 bool y_flipped; 79 bool y_flipped;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 struct Pass { 222 struct Pass {
223 RenderPassId id; 223 RenderPassId id;
224 mojo.Rect output_rect; 224 mojo.Rect output_rect;
225 mojo.Rect damage_rect; 225 mojo.Rect damage_rect;
226 mojo.Transform transform_to_root_target; 226 mojo.Transform transform_to_root_target;
227 bool has_transparent_background; 227 bool has_transparent_background;
228 array<Quad> quads; 228 array<Quad> quads;
229 array<SharedQuadState> shared_quad_states; 229 array<SharedQuadState> shared_quad_states;
230 }; 230 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/BUILD.gn ('k') | components/mus/public/interfaces/surface_id.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698