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

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

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 1 month 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 flipped;
67 bool nearest_neighbor;
67 }; 68 };
68 69
69 struct TileQuadState { 70 struct TileQuadState {
70 RectF tex_coord_rect; 71 RectF tex_coord_rect;
71 Size texture_size; 72 Size texture_size;
72 bool swizzle_contents; 73 bool swizzle_contents;
73 uint32 resource_id; 74 uint32 resource_id;
74 }; 75 };
75 76
76 struct StreamVideoQuadState {}; 77 struct StreamVideoQuadState {};
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 int32 id; 203 int32 id;
203 Rect output_rect; 204 Rect output_rect;
204 Rect damage_rect; 205 Rect damage_rect;
205 Transform transform_to_root_target; 206 Transform transform_to_root_target;
206 bool has_transparent_background; 207 bool has_transparent_background;
207 array<Quad> quads; 208 array<Quad> quads;
208 array<SharedQuadState> shared_quad_states; 209 array<SharedQuadState> shared_quad_states;
209 }; 210 };
210 211
211 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698