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

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

Issue 659683002: Include mask texture size in RenderPassDrawQuad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_mask_draw_quad_test
Patch Set: No ToEnclosedRect 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/converters/surfaces/surfaces_type_converters.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 10 matching lines...) Expand all
21 struct RenderPassId { 21 struct RenderPassId {
22 int32 layer_id; 22 int32 layer_id;
23 int32 index; 23 int32 index;
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 RectF mask_uv_rect; 31 PointF mask_uv_scale;
32 Size mask_texture_size;
32 33
33 // Post-processing filters, applied to the pixels in the render pass' texture. 34 // Post-processing filters, applied to the pixels in the render pass' texture.
34 // TODO(jamesr): Support 35 // TODO(jamesr): Support
35 // FilterOperations filters; 36 // FilterOperations filters;
36 37
37 // The scale from layer space of the root layer of the render pass to 38 // The scale from layer space of the root layer of the render pass to
38 // the render pass physical pixels. This scale is applied to the filter 39 // the render pass physical pixels. This scale is applied to the filter
39 // parameters for pixel-moving filters. This scale should include 40 // parameters for pixel-moving filters. This scale should include
40 // content-to-target-space scale, and device pixel ratio. 41 // content-to-target-space scale, and device pixel ratio.
41 PointF filters_scale; 42 PointF filters_scale;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int32 id; 202 int32 id;
202 Rect output_rect; 203 Rect output_rect;
203 Rect damage_rect; 204 Rect damage_rect;
204 Transform transform_to_root_target; 205 Transform transform_to_root_target;
205 bool has_transparent_background; 206 bool has_transparent_background;
206 array<Quad> quads; 207 array<Quad> quads;
207 array<SharedQuadState> shared_quad_states; 208 array<SharedQuadState> shared_quad_states;
208 }; 209 };
209 210
210 } 211 }
OLDNEW
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698