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

Side by Side Diff: components/view_manager/public/interfaces/quads.mojom

Issue 1158433010: Reland: cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mojo update Created 5 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 | « cc/surfaces/surface_aggregator_test_helpers.h ('k') | content/common/cc_messages.cc » ('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 mojo; 5 module mojo;
6 6
7 import "components/view_manager/public/interfaces/surface_id.mojom"; 7 import "components/view_manager/public/interfaces/surface_id.mojom";
8 import "ui/mojo/geometry/geometry.mojom"; 8 import "ui/mojo/geometry/geometry.mojom";
9 9
10 struct Color { 10 struct Color {
11 uint32 rgba; 11 uint32 rgba;
12 }; 12 };
13 13
14 // TODO(jamesr): Populate subtype fields. 14 // TODO(jamesr): Populate subtype fields.
15 struct CheckerboardQuadState {}; 15 struct CheckerboardQuadState {};
16 16
17 struct DebugBorderQuadState {}; 17 struct DebugBorderQuadState {};
18 18
19 struct IoSurfaceContentQuadState {}; 19 struct IoSurfaceContentQuadState {};
20 20
21 struct RenderPassId { 21 struct RenderPassId {
22 int32 layer_id; 22 int32 layer_id;
23 int32 index; 23 uint32 index;
sky 2015/06/08 14:53:13 Seems wrong to have this and RenderPassId::index d
vmpstr 2015/06/08 18:59:27 The problem is that I think the correct type for R
24 }; 24 };
25 25
26 struct RenderPassQuadState { 26 struct RenderPassQuadState {
27 RenderPassId render_pass_id; 27 RenderPassId render_pass_id;
28 28
29 // If nonzero, resource id of mask to use when drawing this pass. 29 // If nonzero, resource id of mask to use when drawing this pass.
30 uint32 mask_resource_id; 30 uint32 mask_resource_id;
31 PointF mask_uv_scale; 31 PointF mask_uv_scale;
32 Size mask_texture_size; 32 Size mask_texture_size;
33 33
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 struct Pass { 204 struct Pass {
205 RenderPassId id; 205 RenderPassId id;
206 Rect output_rect; 206 Rect output_rect;
207 Rect damage_rect; 207 Rect damage_rect;
208 Transform transform_to_root_target; 208 Transform transform_to_root_target;
209 bool has_transparent_background; 209 bool has_transparent_background;
210 array<Quad> quads; 210 array<Quad> quads;
211 array<SharedQuadState> shared_quad_states; 211 array<SharedQuadState> shared_quad_states;
212 }; 212 };
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator_test_helpers.h ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698