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

Side by Side Diff: mojo/services/public/interfaces/surfaces/quads.mojom

Issue 551013002: Use Custome ListContainer to Allocate SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DQAllo
Patch Set: rebase Created 6 years, 2 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 | « mojo/services/public/cpp/surfaces/tests/surface_unittest.cc ('k') | no next file » | 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 import "mojo/services/public/interfaces/geometry/geometry.mojom" 5 import "mojo/services/public/interfaces/geometry/geometry.mojom"
6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" 6 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"
7 7
8 module mojo { 8 module mojo {
9 9
10 struct Color { 10 struct Color {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Allows changing the rect that gets drawn to make it smaller. This value 116 // Allows changing the rect that gets drawn to make it smaller. This value
117 // should be clipped to |rect|. This rect lives in content space. 117 // should be clipped to |rect|. This rect lives in content space.
118 Rect visible_rect; 118 Rect visible_rect;
119 119
120 // Allows changing the rect that gets drawn to make it smaller. This value 120 // Allows changing the rect that gets drawn to make it smaller. This value
121 // should be clipped to |rect|. This rect lives in content space. 121 // should be clipped to |rect|. This rect lives in content space.
122 bool needs_blending; 122 bool needs_blending;
123 123
124 // Index into the containing pass' shared quad state array which has state 124 // Index into the containing pass' shared quad state array which has state
125 // (transforms etc) shared by multiple quads. 125 // (transforms etc) shared by multiple quads.
126 int32 shared_quad_state_index; 126 uint32 shared_quad_state_index;
127 127
128 // Only one of the following will be set, depending on the material. 128 // Only one of the following will be set, depending on the material.
129 CheckerboardQuadState? checkerboard_quad_state; 129 CheckerboardQuadState? checkerboard_quad_state;
130 DebugBorderQuadState? debug_border_quad_state; 130 DebugBorderQuadState? debug_border_quad_state;
131 IoSurfaceContentQuadState? io_surface_quad_state; 131 IoSurfaceContentQuadState? io_surface_quad_state;
132 RenderPassQuadState? render_pass_quad_state; 132 RenderPassQuadState? render_pass_quad_state;
133 SolidColorQuadState? solid_color_quad_state; 133 SolidColorQuadState? solid_color_quad_state;
134 SurfaceQuadState? surface_quad_state; 134 SurfaceQuadState? surface_quad_state;
135 TextureQuadState? texture_quad_state; 135 TextureQuadState? texture_quad_state;
136 TileQuadState? tile_quad_state; 136 TileQuadState? tile_quad_state;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int32 id; 201 int32 id;
202 Rect output_rect; 202 Rect output_rect;
203 Rect damage_rect; 203 Rect damage_rect;
204 Transform transform_to_root_target; 204 Transform transform_to_root_target;
205 bool has_transparent_background; 205 bool has_transparent_background;
206 array<Quad> quads; 206 array<Quad> quads;
207 array<SharedQuadState> shared_quad_states; 207 array<SharedQuadState> shared_quad_states;
208 }; 208 };
209 209
210 } 210 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/surfaces/tests/surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698