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

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

Issue 2773103002: cc: Unify all sources of color space for YUVVideoDrawQuad (Closed)
Patch Set: Created 3 years, 9 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 | « cc/ipc/cc_param_traits_unittest.cc ('k') | 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/shared_quad_state.mojom"; 8 import "cc/ipc/shared_quad_state.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";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 }; 76 };
77 77
78 struct TileQuadState { 78 struct TileQuadState {
79 gfx.mojom.RectF tex_coord_rect; 79 gfx.mojom.RectF tex_coord_rect;
80 gfx.mojom.Size texture_size; 80 gfx.mojom.Size texture_size;
81 bool swizzle_contents; 81 bool swizzle_contents;
82 uint32 resource_id; 82 uint32 resource_id;
83 bool nearest_neighbor; 83 bool nearest_neighbor;
84 }; 84 };
85 85
86 enum YUVColorSpace {
87 REC_601, // SDTV standard with restricted "studio swing" color range.
88 REC_709, // HDTV standard with restricted "studio swing" color range.
89 JPEG, // Full color range [0, 255] JPEG color space.
90 };
91
92 struct YUVVideoQuadState { 86 struct YUVVideoQuadState {
93 gfx.mojom.RectF ya_tex_coord_rect; 87 gfx.mojom.RectF ya_tex_coord_rect;
94 gfx.mojom.RectF uv_tex_coord_rect; 88 gfx.mojom.RectF uv_tex_coord_rect;
95 gfx.mojom.Size ya_tex_size; 89 gfx.mojom.Size ya_tex_size;
96 gfx.mojom.Size uv_tex_size; 90 gfx.mojom.Size uv_tex_size;
97 uint32 y_plane_resource_id; 91 uint32 y_plane_resource_id;
98 uint32 u_plane_resource_id; 92 uint32 u_plane_resource_id;
99 uint32 v_plane_resource_id; 93 uint32 v_plane_resource_id;
100 uint32 a_plane_resource_id; 94 uint32 a_plane_resource_id;
101 YUVColorSpace color_space;
102 float resource_offset; 95 float resource_offset;
103 float resource_multiplier; 96 float resource_multiplier;
104 uint32 bits_per_channel; 97 uint32 bits_per_channel;
105 }; 98 };
106 99
107 union DrawQuadState { 100 union DrawQuadState {
108 DebugBorderQuadState debug_border_quad_state; 101 DebugBorderQuadState debug_border_quad_state;
109 RenderPassQuadState render_pass_quad_state; 102 RenderPassQuadState render_pass_quad_state;
110 SolidColorQuadState solid_color_quad_state; 103 SolidColorQuadState solid_color_quad_state;
111 StreamVideoQuadState stream_video_quad_state; 104 StreamVideoQuadState stream_video_quad_state;
(...skipping 19 matching lines...) Expand all
131 // Allows changing the rect that gets drawn to make it smaller. This value 124 // Allows changing the rect that gets drawn to make it smaller. This value
132 // should be clipped to |rect|. This rect lives in content space. 125 // should be clipped to |rect|. This rect lives in content space.
133 bool needs_blending; 126 bool needs_blending;
134 127
135 // Optionally holds a SharedQuadState (transforms etc) shared by multiple 128 // Optionally holds a SharedQuadState (transforms etc) shared by multiple
136 // quads. 129 // quads.
137 SharedQuadState? sqs; 130 SharedQuadState? sqs;
138 131
139 DrawQuadState draw_quad_state; 132 DrawQuadState draw_quad_state;
140 }; 133 };
OLDNEW
« no previous file with comments | « cc/ipc/cc_param_traits_unittest.cc ('k') | cc/ipc/quads_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698