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

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

Issue 2088603002: Implement RenderPass StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's comments 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
« no previous file with comments | « no previous file | cc/ipc/quads_struct_traits.h » ('j') | cc/ipc/quads_struct_traits.cc » ('J')
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";
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Allows changing the rect that gets drawn to make it smaller. This value 117 // Allows changing the rect that gets drawn to make it smaller. This value
118 // should be clipped to |rect|. This rect lives in content space. 118 // should be clipped to |rect|. This rect lives in content space.
119 gfx.mojom.Rect visible_rect; 119 gfx.mojom.Rect visible_rect;
120 120
121 // Allows changing the rect that gets drawn to make it smaller. This value 121 // Allows changing the rect that gets drawn to make it smaller. This value
122 // should be clipped to |rect|. This rect lives in content space. 122 // should be clipped to |rect|. This rect lives in content space.
123 bool needs_blending; 123 bool needs_blending;
124 124
125 // Index into the containing pass' shared quad state array which has state 125 // Index into the containing pass' shared quad state array which has state
126 // (transforms etc) shared by multiple quads. 126 // (transforms etc) shared by multiple quads.
127 uint32 shared_quad_state_index; 127 // TODO(fsamuel): This is not currently used because we store the
128 // indicies to SharedQuadStates in a separate array. This is more expensive
129 // than storing them inline here, but we need support for context propagation
130 // in Mojo StructTraits in order to store the sqs index here.
131 //uint32 shared_quad_state_index;
128 132
129 // Only one of the following will be set, depending on the material. 133 // Only one of the following will be set, depending on the material.
130 DebugBorderQuadState? debug_border_quad_state; 134 DebugBorderQuadState? debug_border_quad_state;
131 RenderPassQuadState? render_pass_quad_state; 135 RenderPassQuadState? render_pass_quad_state;
132 SolidColorQuadState? solid_color_quad_state; 136 SolidColorQuadState? solid_color_quad_state;
133 SurfaceQuadState? surface_quad_state; 137 SurfaceQuadState? surface_quad_state;
134 TextureQuadState? texture_quad_state; 138 TextureQuadState? texture_quad_state;
135 TileQuadState? tile_quad_state; 139 TileQuadState? tile_quad_state;
136 StreamVideoQuadState? stream_video_quad_state; 140 StreamVideoQuadState? stream_video_quad_state;
137 YUVVideoQuadState? yuv_video_quad_state; 141 YUVVideoQuadState? yuv_video_quad_state;
138 }; 142 };
139 143
140 struct QuadList { 144 struct QuadList {
141 array<Material> quad_types; 145 array<Material> quad_types;
142 array<DrawQuad> quads; 146 array<DrawQuad> quads;
143 }; 147 };
144 148
OLDNEW
« no previous file with comments | « no previous file | cc/ipc/quads_struct_traits.h » ('j') | cc/ipc/quads_struct_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698