Home
last modified time | relevance | path

Searched refs:ToRoundedInt (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dsafe_integer_conversions_unittest.cc55 TEST(SafeIntegerConversions, ToRoundedInt) { in TEST() argument
63 EXPECT_EQ(int_max, ToRoundedInt(infinity)); in TEST()
64 EXPECT_EQ(int_max, ToRoundedInt(max)); in TEST()
65 EXPECT_EQ(int_max, ToRoundedInt(max + 100)); in TEST()
67 EXPECT_EQ(-100, ToRoundedInt(-100.1f)); in TEST()
68 EXPECT_EQ(-101, ToRoundedInt(-100.5f)); in TEST()
69 EXPECT_EQ(-101, ToRoundedInt(-100.9f)); in TEST()
70 EXPECT_EQ(0, ToRoundedInt(0.f)); in TEST()
71 EXPECT_EQ(100, ToRoundedInt(100.1f)); in TEST()
72 EXPECT_EQ(101, ToRoundedInt(100.5f)); in TEST()
[all …]
Drect_conversions.cc39 int min_x = ToRoundedInt(float_min_x); in ToNearestRect()
40 int min_y = ToRoundedInt(float_min_y); in ToNearestRect()
41 int max_x = ToRoundedInt(float_max_x); in ToNearestRect()
42 int max_y = ToRoundedInt(float_max_y); in ToNearestRect()
63 int min_x = ToRoundedInt(float_min_x); in IsNearestRectWithinDistance()
64 int min_y = ToRoundedInt(float_min_y); in IsNearestRectWithinDistance()
65 int max_x = ToRoundedInt(float_max_x); in IsNearestRectWithinDistance()
66 int max_y = ToRoundedInt(float_max_y); in IsNearestRectWithinDistance()
Dvector2d_conversions.cc24 int x = ToRoundedInt(vector2d.x()); in ToRoundedVector2d()
25 int y = ToRoundedInt(vector2d.y()); in ToRoundedVector2d()
Dpoint_conversions.cc24 int x = ToRoundedInt(point.x()); in ToRoundedPoint()
25 int y = ToRoundedInt(point.y()); in ToRoundedPoint()
Dsize_conversions.cc24 int w = ToRoundedInt(size.width()); in ToRoundedSize()
25 int h = ToRoundedInt(size.height()); in ToRoundedSize()
Dsafe_integer_conversions.h32 inline int ToRoundedInt(float value) { in ToRoundedInt() function
41 inline int ToRoundedInt(double value) { in ToRoundedInt() function