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

Side by Side Diff: cc/ipc/quads.mojom

Issue 2101543002: Implement StreamVideoDrawQuad StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | cc/ipc/quads_struct_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc.mojom; 5 module cc.mojom;
6 6
7 import "cc/ipc/filter_operations.mojom"; 7 import "cc/ipc/filter_operations.mojom";
8 import "cc/ipc/render_pass_id.mojom"; 8 import "cc/ipc/render_pass_id.mojom";
9 import "cc/ipc/surface_id.mojom"; 9 import "cc/ipc/surface_id.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
11 import "ui/gfx/mojo/transform.mojom";
11 12
12 struct DebugBorderQuadState { 13 struct DebugBorderQuadState {
13 // Debug border color. 14 // Debug border color.
14 uint32 color; 15 uint32 color;
15 16
16 // Debug border width. 17 // Debug border width.
17 int32 width; 18 int32 width;
18 }; 19 };
19 20
20 struct RenderPassQuadState { 21 struct RenderPassQuadState {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }; 62 };
62 63
63 struct TileQuadState { 64 struct TileQuadState {
64 gfx.mojom.RectF tex_coord_rect; 65 gfx.mojom.RectF tex_coord_rect;
65 gfx.mojom.Size texture_size; 66 gfx.mojom.Size texture_size;
66 bool swizzle_contents; 67 bool swizzle_contents;
67 uint32 resource_id; 68 uint32 resource_id;
68 bool nearest_neighbor; 69 bool nearest_neighbor;
69 }; 70 };
70 71
71 struct StreamVideoQuadState {}; 72 struct StreamVideoQuadState {
73 uint32 resource_id;
74 gfx.mojom.Size resource_size_in_pixels;
75 gfx.mojom.Transform matrix;
76 };
72 77
73 enum YUVColorSpace { 78 enum YUVColorSpace {
74 REC_601, // SDTV standard with restricted "studio swing" color range. 79 REC_601, // SDTV standard with restricted "studio swing" color range.
75 REC_709, // HDTV standard with restricted "studio swing" color range. 80 REC_709, // HDTV standard with restricted "studio swing" color range.
76 JPEG, // Full color range [0, 255] JPEG color space. 81 JPEG, // Full color range [0, 255] JPEG color space.
77 }; 82 };
78 83
79 struct YUVVideoQuadState { 84 struct YUVVideoQuadState {
80 gfx.mojom.RectF ya_tex_coord_rect; 85 gfx.mojom.RectF ya_tex_coord_rect;
81 gfx.mojom.RectF uv_tex_coord_rect; 86 gfx.mojom.RectF uv_tex_coord_rect;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 TileQuadState? tile_quad_state; 144 TileQuadState? tile_quad_state;
140 StreamVideoQuadState? stream_video_quad_state; 145 StreamVideoQuadState? stream_video_quad_state;
141 YUVVideoQuadState? yuv_video_quad_state; 146 YUVVideoQuadState? yuv_video_quad_state;
142 }; 147 };
143 148
144 struct QuadList { 149 struct QuadList {
145 array<Material> quad_types; 150 array<Material> quad_types;
146 array<DrawQuad> quads; 151 array<DrawQuad> quads;
147 }; 152 };
148 153
OLDNEW
« no previous file with comments | « no previous file | cc/ipc/quads_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698