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

Unified Diff: mojo/converters/surfaces/tests/surface_unittest.cc

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 side-by-side diff with in-line comments
Download patch
Index: mojo/converters/surfaces/tests/surface_unittest.cc
diff --git a/mojo/converters/surfaces/tests/surface_unittest.cc b/mojo/converters/surfaces/tests/surface_unittest.cc
index 4b1fd211493cee536a12e508dd4cc07324d1589e..cdfb9cba9a3130a0f05772404a24fe924eb8b22e 100644
--- a/mojo/converters/surfaces/tests/surface_unittest.cc
+++ b/mojo/converters/surfaces/tests/surface_unittest.cc
@@ -108,6 +108,7 @@ TEST_F(SurfaceLibQuadTest, TextureQuad) {
SkColor background_color = SK_ColorYELLOW;
float vertex_opacity[4] = {0.1f, 0.5f, 0.4f, 0.8f};
bool flipped = false;
+ bool nearest_neighbor = false;
texture_quad->SetAll(sqs,
rect,
opaque_rect,
@@ -119,7 +120,8 @@ TEST_F(SurfaceLibQuadTest, TextureQuad) {
uv_bottom_right,
background_color,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
QuadPtr mojo_quad = Quad::From<cc::DrawQuad>(*texture_quad);
ASSERT_FALSE(mojo_quad.is_null());
@@ -267,6 +269,7 @@ TEST(SurfaceLibTest, RenderPass) {
SkColor background_color = SK_ColorYELLOW;
float vertex_opacity[4] = {0.1f, 0.5f, 0.4f, 0.8f};
bool flipped = false;
+ bool nearest_neighbor = false;
texture_quad->SetAll(sqs,
rect,
opaque_rect,
@@ -278,7 +281,8 @@ TEST(SurfaceLibTest, RenderPass) {
uv_bottom_right,
background_color,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
PassPtr mojo_pass = Pass::From(*pass);
ASSERT_FALSE(mojo_pass.is_null());
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/services/public/interfaces/surfaces/quads.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698