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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 394193003: Implement HiDPI and pinch-zoom scaling of filter params (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable pixel test for Android Created 6 years, 4 months 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 e256bcfbb4ed0cd6b7fc92b01d8cedb90ae10e00..bf87b70045d99a0a82954033cd2bd13aec47f764 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -158,6 +158,8 @@ class CCMessagesTest : public testing::Test {
b->filters.at(i).image_filter()->countInputs());
}
}
+ EXPECT_EQ(a->filters_scale.x(), b->filters_scale.x());
danakj 2014/08/05 14:05:44 You can just compare |filters_scale| instead of ea
garykac 2014/08/05 21:17:49 Done.
+ EXPECT_EQ(a->filters_scale.y(), b->filters_scale.y());
EXPECT_EQ(a->background_filters, b->background_filters);
}
@@ -241,6 +243,7 @@ TEST_F(CCMessagesTest, AllQuads) {
gfx::SizeF arbitrary_sizef1(15.2f, 104.6f);
gfx::PointF arbitrary_pointf1(31.4f, 15.9f);
gfx::PointF arbitrary_pointf2(26.5f, -35.8f);
+ gfx::Vector2dF arbitrary_vector2df1(16.2f, -85.1f);
float arbitrary_float1 = 0.7f;
float arbitrary_float2 = 0.3f;
float arbitrary_float3 = 0.9f;
@@ -369,6 +372,7 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_rect1,
arbitrary_rectf1,
arbitrary_filters1,
+ arbitrary_vector2df1,
arbitrary_filters2);
pass_cmp->CopyFromAndAppendRenderPassDrawQuad(
renderpass_in,

Powered by Google App Engine
This is Rietveld 408576698