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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. 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
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/shared_quad_state.mojom"; 9 import "cc/ipc/shared_quad_state.mojom";
10 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gfx.mojom.Size uv_tex_size; 85 gfx.mojom.Size uv_tex_size;
86 uint32 y_plane_resource_id; 86 uint32 y_plane_resource_id;
87 uint32 u_plane_resource_id; 87 uint32 u_plane_resource_id;
88 uint32 v_plane_resource_id; 88 uint32 v_plane_resource_id;
89 uint32 a_plane_resource_id; 89 uint32 a_plane_resource_id;
90 YUVColorSpace color_space; 90 YUVColorSpace color_space;
91 float resource_offset; 91 float resource_offset;
92 float resource_multiplier; 92 float resource_multiplier;
93 }; 93 };
94 94
95 struct YVideoQuadState {
96 uint32 resource_id;
97 gfx.mojom.PointF uv_top_left;
98 gfx.mojom.PointF uv_bottom_right;
99 };
100
95 enum Material { 101 enum Material {
96 INVALID, 102 INVALID,
97 DEBUG_BORDER, 103 DEBUG_BORDER,
98 PICTURE_CONTENT, 104 PICTURE_CONTENT,
99 RENDER_PASS, 105 RENDER_PASS,
100 SOLID_COLOR, 106 SOLID_COLOR,
101 STREAM_VIDEO_CONTENT, 107 STREAM_VIDEO_CONTENT,
102 SURFACE_CONTENT, 108 SURFACE_CONTENT,
103 TEXTURE_CONTENT, 109 TEXTURE_CONTENT,
104 TILED_CONTENT, 110 TILED_CONTENT,
105 YUV_VIDEO_CONTENT, 111 YUV_VIDEO_CONTENT,
112 Y_VIDEO_CONTENT,
106 }; 113 };
107 114
108 struct DrawQuad { 115 struct DrawQuad {
109 Material material; 116 Material material;
110 117
111 // This rect, after applying the quad_transform(), gives the geometry that 118 // This rect, after applying the quad_transform(), gives the geometry that
112 // this quad should draw to. This rect lives in content space. 119 // this quad should draw to. This rect lives in content space.
113 gfx.mojom.Rect rect; 120 gfx.mojom.Rect rect;
114 121
115 // This specifies the region of the quad that is opaque. This rect lives in 122 // This specifies the region of the quad that is opaque. This rect lives in
(...skipping 14 matching lines...) Expand all
130 137
131 // Only one of the following will be set, depending on the material. 138 // Only one of the following will be set, depending on the material.
132 DebugBorderQuadState? debug_border_quad_state; 139 DebugBorderQuadState? debug_border_quad_state;
133 RenderPassQuadState? render_pass_quad_state; 140 RenderPassQuadState? render_pass_quad_state;
134 SolidColorQuadState? solid_color_quad_state; 141 SolidColorQuadState? solid_color_quad_state;
135 SurfaceQuadState? surface_quad_state; 142 SurfaceQuadState? surface_quad_state;
136 TextureQuadState? texture_quad_state; 143 TextureQuadState? texture_quad_state;
137 TileQuadState? tile_quad_state; 144 TileQuadState? tile_quad_state;
138 StreamVideoQuadState? stream_video_quad_state; 145 StreamVideoQuadState? stream_video_quad_state;
139 YUVVideoQuadState? yuv_video_quad_state; 146 YUVVideoQuadState? yuv_video_quad_state;
147 YVideoQuadState? y_video_quad_state;
140 }; 148 };
141 149
142 struct QuadList { 150 struct QuadList {
143 array<Material> quad_types; 151 array<Material> quad_types;
144 array<DrawQuad> quads; 152 array<DrawQuad> quads;
145 }; 153 };
146 154
147 struct RenderPass { 155 struct RenderPass {
148 cc.mojom.RenderPassId id; 156 cc.mojom.RenderPassId id;
149 gfx.mojom.Rect output_rect; 157 gfx.mojom.Rect output_rect;
150 gfx.mojom.Rect damage_rect; 158 gfx.mojom.Rect damage_rect;
151 gfx.mojom.Transform transform_to_root_target; 159 gfx.mojom.Transform transform_to_root_target;
152 bool has_transparent_background; 160 bool has_transparent_background;
153 array<DrawQuad> quads; 161 array<DrawQuad> quads;
154 cc.mojom.SharedQuadStateList shared_quad_states; 162 cc.mojom.SharedQuadStateList shared_quad_states;
155 }; 163 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698