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

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

Issue 2047573005: Implement cc::FilterOperations StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb cc::FilterOperations to mus 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 | « components/mus/public/cpp/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 module mus.mojom; 5 module mus.mojom;
6 6
7 import "cc/ipc/filter_operations.mojom";
7 import "cc/ipc/render_pass_id.mojom"; 8 import "cc/ipc/render_pass_id.mojom";
8 import "cc/ipc/shared_quad_state.mojom"; 9 import "cc/ipc/shared_quad_state.mojom";
9 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
10 import "ui/gfx/geometry/mojo/geometry.mojom"; 11 import "ui/gfx/geometry/mojo/geometry.mojom";
11 import "ui/gfx/mojo/transform.mojom"; 12 import "ui/gfx/mojo/transform.mojom";
12 13
13 struct Color { 14 struct Color {
14 uint32 rgba; 15 uint32 rgba;
15 }; 16 };
16 17
(...skipping 19 matching lines...) Expand all
36 37
37 struct RenderPassQuadState { 38 struct RenderPassQuadState {
38 cc.mojom.RenderPassId render_pass_id; 39 cc.mojom.RenderPassId render_pass_id;
39 40
40 // If nonzero, resource id of mask to use when drawing this pass. 41 // If nonzero, resource id of mask to use when drawing this pass.
41 uint32 mask_resource_id; 42 uint32 mask_resource_id;
42 gfx.mojom.PointF mask_uv_scale; 43 gfx.mojom.PointF mask_uv_scale;
43 gfx.mojom.Size mask_texture_size; 44 gfx.mojom.Size mask_texture_size;
44 45
45 // Post-processing filters, applied to the pixels in the render pass' texture. 46 // Post-processing filters, applied to the pixels in the render pass' texture.
46 // TODO(jamesr): Support 47 cc.mojom.FilterOperations filters;
47 // FilterOperations filters;
48 48
49 // The scale from layer space of the root layer of the render pass to 49 // The scale from layer space of the root layer of the render pass to
50 // the render pass physical pixels. This scale is applied to the filter 50 // the render pass physical pixels. This scale is applied to the filter
51 // parameters for pixel-moving filters. This scale should include 51 // parameters for pixel-moving filters. This scale should include
52 // content-to-target-space scale, and device pixel ratio. 52 // content-to-target-space scale, and device pixel ratio.
53 gfx.mojom.PointF filters_scale; 53 gfx.mojom.PointF filters_scale;
54 54
55 // Post-processing filters, applied to the pixels showing through the 55 // Post-processing filters, applied to the pixels showing through the
56 // background of the render pass, from behind it. 56 // background of the render pass, from behind it.
57 // TODO(jamesr): Support 57 cc.mojom.FilterOperations background_filters;
58 // FilterOperations background_filters;
59 }; 58 };
60 59
61 struct SolidColorQuadState { 60 struct SolidColorQuadState {
62 Color color; 61 Color color;
63 bool force_anti_aliasing_off; 62 bool force_anti_aliasing_off;
64 }; 63 };
65 64
66 struct SurfaceQuadState { 65 struct SurfaceQuadState {
67 cc.mojom.SurfaceId surface; 66 cc.mojom.SurfaceId surface;
68 }; 67 };
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 158
160 struct Pass { 159 struct Pass {
161 cc.mojom.RenderPassId id; 160 cc.mojom.RenderPassId id;
162 gfx.mojom.Rect output_rect; 161 gfx.mojom.Rect output_rect;
163 gfx.mojom.Rect damage_rect; 162 gfx.mojom.Rect damage_rect;
164 gfx.mojom.Transform transform_to_root_target; 163 gfx.mojom.Transform transform_to_root_target;
165 bool has_transparent_background; 164 bool has_transparent_background;
166 array<Quad> quads; 165 array<Quad> quads;
167 array<cc.mojom.SharedQuadState> shared_quad_states; 166 array<cc.mojom.SharedQuadState> shared_quad_states;
168 }; 167 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/surfaces/surfaces_type_converters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698