Home
last modified time | relevance | path

Searched refs:ToRoundedPoint (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dpoint_unittest.cc70 TEST(PointTest, ToRoundedPoint) { in TEST() argument
71 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0))); in TEST()
72 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.0001f, 0.0001f))); in TEST()
73 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.4999f, 0.4999f))); in TEST()
74 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.5f, 0.5f))); in TEST()
75 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.9999f, 0.9999f))); in TEST()
77 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10, 10))); in TEST()
78 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.0001f, 10.0001f))); in TEST()
79 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.4999f, 10.4999f))); in TEST()
80 EXPECT_EQ(Point(11, 11), ToRoundedPoint(PointF(10.5f, 10.5f))); in TEST()
[all …]
Dpoint.cc96 return ToRoundedPoint(ScalePoint(gfx::PointF(point), x_scale, y_scale)); in ScaleToRoundedPoint()
102 return ToRoundedPoint(ScalePoint(gfx::PointF(point), scale, scale)); in ScaleToRoundedPoint()
Dpoint_conversions.h20 GFX_EXPORT Point ToRoundedPoint(const PointF& point);
Dpoint_conversions.cc23 Point ToRoundedPoint(const PointF& point) { in ToRoundedPoint() function