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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 11543013: Combine mask texture parameters into single gfx::RectF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nits Created 8 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 | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index 0342690993c0f994217451e38deeccc5fcec5b46..924223cdf1b0fa2b6f0c83498b54bbc8df245841 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -129,10 +129,7 @@ class CCMessagesTest : public testing::Test {
EXPECT_EQ(a->mask_resource_id, b->mask_resource_id);
EXPECT_EQ(a->contents_changed_since_last_frame,
b->contents_changed_since_last_frame);
- EXPECT_EQ(a->mask_tex_coord_scale_x, b->mask_tex_coord_scale_x);
- EXPECT_EQ(a->mask_tex_coord_scale_y, b->mask_tex_coord_scale_y);
- EXPECT_EQ(a->mask_tex_coord_offset_x, b->mask_tex_coord_offset_x);
- EXPECT_EQ(a->mask_tex_coord_offset_y, b->mask_tex_coord_offset_y);
+ EXPECT_EQ(a->mask_uv_rect.ToString(), b->mask_uv_rect.ToString());
}
void Compare(const SolidColorDrawQuad* a, const SolidColorDrawQuad* b) {
@@ -202,7 +199,6 @@ TEST_F(CCMessagesTest, AllQuads) {
float arbitrary_float1 = 0.7f;
float arbitrary_float2 = 0.3f;
float arbitrary_float3 = 0.9f;
- float arbitrary_float4 = 0.1f;
bool arbitrary_bool1 = true;
bool arbitrary_bool2 = false;
int arbitrary_int = 5;
@@ -294,10 +290,7 @@ TEST_F(CCMessagesTest, AllQuads) {
arbitrary_bool2,
arbitrary_resourceid,
arbitrary_rect1,
- arbitrary_float1,
- arbitrary_float2,
- arbitrary_float3,
- arbitrary_float4);
+ arbitrary_rectf1);
scoped_ptr<RenderPassDrawQuad> renderpass_cmp = renderpass_in->Copy(
renderpass_in->shared_quad_state, renderpass_in->render_pass_id);
« no previous file with comments | « content/common/cc_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698