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

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

Issue 1135813005: Add detection for rotation and flip overlay transforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mojo surfaces unit test, chase flipped rename to TextureQuadState Created 5 years, 7 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/quads/texture_draw_quad.cc ('k') | content/common/cc_messages.h » ('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 "surfaces/public/interfaces/surface_id.mojom"; 7 import "surfaces/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 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SurfaceId surface; 56 SurfaceId surface;
57 }; 57 };
58 58
59 struct TextureQuadState { 59 struct TextureQuadState {
60 uint32 resource_id; 60 uint32 resource_id;
61 bool premultiplied_alpha; 61 bool premultiplied_alpha;
62 PointF uv_top_left; 62 PointF uv_top_left;
63 PointF uv_bottom_right; 63 PointF uv_bottom_right;
64 Color background_color; 64 Color background_color;
65 array<float, 4> vertex_opacity; 65 array<float, 4> vertex_opacity;
66 bool flipped; 66 bool y_flipped;
67 bool nearest_neighbor; 67 bool nearest_neighbor;
68 }; 68 };
69 69
70 struct TileQuadState { 70 struct TileQuadState {
71 RectF tex_coord_rect; 71 RectF tex_coord_rect;
72 Size texture_size; 72 Size texture_size;
73 bool swizzle_contents; 73 bool swizzle_contents;
74 uint32 resource_id; 74 uint32 resource_id;
75 bool nearest_neighbor; 75 bool nearest_neighbor;
76 }; 76 };
(...skipping 126 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/quads/texture_draw_quad.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698