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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to WebExternalTextureLayer::setNearestNeighbor. 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 side-by-side diff with in-line comments
Download patch
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index ea2dd09ceeeaf5e4f7804fbcc157c6dc46daa4f1..536cc39481acdb0a4cb05d1d1a80bf306517ab1a 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -186,6 +186,7 @@ class CCMessagesTest : public testing::Test {
EXPECT_EQ(a->vertex_opacity[2], b->vertex_opacity[2]);
EXPECT_EQ(a->vertex_opacity[3], b->vertex_opacity[3]);
EXPECT_EQ(a->flipped, b->flipped);
+ EXPECT_EQ(a->nearest_neighbor, b->nearest_neighbor);
}
void Compare(const TileDrawQuad* a, const TileDrawQuad* b) {
@@ -251,6 +252,7 @@ TEST_F(CCMessagesTest, AllQuads) {
bool arbitrary_bool1 = true;
bool arbitrary_bool2 = false;
bool arbitrary_bool3 = true;
+ bool arbitrary_bool4 = true;
int arbitrary_context_id1 = 12;
int arbitrary_context_id2 = 57;
int arbitrary_context_id3 = -503;
@@ -440,7 +442,8 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_pointf2,
arbitrary_color,
arbitrary_float_array,
- arbitrary_bool3);
+ arbitrary_bool3,
+ arbitrary_bool4);
pass_cmp->CopyFromAndAppendDrawQuad(texture_in,
texture_in->shared_quad_state);

Powered by Google App Engine
This is Rietveld 408576698