| Index: cc/test/layer_test_common.cc
|
| diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
|
| index 8ed49a2920cc99a98a6e7111c6e6f3d010e44a01..04c6166f1980f467177aeeb1caf33f7f3c1391db 100644
|
| --- a/cc/test/layer_test_common.cc
|
| +++ b/cc/test/layer_test_common.cc
|
| @@ -29,11 +29,9 @@ static bool CanRectFBeSafelyRoundedToRect(const gfx::RectF& r) {
|
| return false;
|
|
|
| // Ensure that the values are actually integers.
|
| - if (gfx::ToFlooredPoint(r.origin()) == r.origin() &&
|
| - gfx::ToFlooredSize(r.size()) == r.size())
|
| - return true;
|
| -
|
| - return false;
|
| + gfx::RectF floored_rect(std::floor(r.x()), std::floor(r.y()),
|
| + std::floor(r.width()), std::floor(r.height()));
|
| + return floored_rect == r;
|
| }
|
|
|
| void LayerTestCommon::VerifyQuadsExactlyCoverRect(const QuadList& quads,
|
|
|