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

Unified Diff: cc/trees/damage_tracker_unittest.cc

Issue 23043011: cc: Use SkMScalar instead of doubles everywhere in cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finalize test changes Created 7 years, 3 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: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index 9e4537974d9116e293037974453cf7989e429e12..8a8620744104106b1c9140afe99ef2424d9904e0 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -340,14 +340,12 @@ TEST_F(DamageTrackerTest, VerifyDamageForTransformedLayer) {
// should increase the size of the expected rect by sqrt(2), centered around
// (100, 100). The old exposed region should be fully contained in the new
// region.
- double expected_width = 30.0 * sqrt(2.0);
- double expected_position = 100.0 - 0.5 * expected_width;
- gfx::RectF expected_rect(expected_position,
- expected_position,
- expected_width,
- expected_width);
+ float expected_width = 30.f * sqrt(2.f);
+ float expected_position = 100.f - 0.5f * expected_width;
+ gfx::RectF expected_rect(
+ expected_position, expected_position, expected_width, expected_width);
root_damage_rect =
- root->render_surface()->damage_tracker()->current_damage_rect();
+ root->render_surface()->damage_tracker()->current_damage_rect();
EXPECT_FLOAT_RECT_EQ(expected_rect, root_damage_rect);
}

Powered by Google App Engine
This is Rietveld 408576698