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

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: Sync and rebase Created 6 years 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/tests/surface_unittest.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 mojo; 5 module mojo;
6 6
7 import "mojo/services/public/interfaces/geometry/geometry.mojom"; 7 import "mojo/services/public/interfaces/geometry/geometry.mojom";
8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom";
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 struct Pass { 202 struct Pass {
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 };
OLDNEW
« no previous file with comments | « mojo/converters/surfaces/tests/surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698