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

Unified Diff: cc/surfaces/surface_aggregator_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
« no previous file with comments | « cc/resources/texture_mailbox.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator_unittest.cc
diff --git a/cc/surfaces/surface_aggregator_unittest.cc b/cc/surfaces/surface_aggregator_unittest.cc
index 1daff52e0d2475e9c118c06fda7b1cf8e0dfeb00..3e48311efccabf1304a266796b6014341695eaf3 100644
--- a/cc/surfaces/surface_aggregator_unittest.cc
+++ b/cc/surfaces/surface_aggregator_unittest.cc
@@ -1275,6 +1275,7 @@ void SubmitFrameWithResources(ResourceProvider::ResourceId* resource_ids,
SkColor background_color = SK_ColorGREEN;
const float vertex_opacity[4] = {0.f, 0.f, 1.f, 1.f};
bool flipped = false;
+ bool nearest_neighbor = false;
quad->SetAll(sqs,
rect,
opaque_rect,
@@ -1286,7 +1287,8 @@ void SubmitFrameWithResources(ResourceProvider::ResourceId* resource_ids,
uv_bottom_right,
background_color,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
quad->shared_quad_state = sqs;
}
« no previous file with comments | « cc/resources/texture_mailbox.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698