Home
last modified time | relevance | path

Searched refs:ToFlooredInt (Results 1 – 7 of 7) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dsafe_integer_conversions_unittest.cc13 TEST(SafeIntegerConversions, ToFlooredInt) { in TEST() argument
21 EXPECT_EQ(int_max, ToFlooredInt(infinity)); in TEST()
22 EXPECT_EQ(int_max, ToFlooredInt(max)); in TEST()
23 EXPECT_EQ(int_max, ToFlooredInt(max + 100)); in TEST()
25 EXPECT_EQ(-101, ToFlooredInt(-100.5f)); in TEST()
26 EXPECT_EQ(0, ToFlooredInt(0.f)); in TEST()
27 EXPECT_EQ(100, ToFlooredInt(100.5f)); in TEST()
29 EXPECT_EQ(int_min, ToFlooredInt(-infinity)); in TEST()
30 EXPECT_EQ(int_min, ToFlooredInt(min)); in TEST()
31 EXPECT_EQ(int_min, ToFlooredInt(min - 100)); in TEST()
Drect_conversions.cc16 int left = ToFlooredInt(r.x()); in ToEnclosingRect()
18 int top = ToFlooredInt(r.y()); in ToEnclosingRect()
29 ToFlooredInt(rect.right()), ToFlooredInt(rect.bottom())); in ToEnclosedRect()
76 return Rect(ToFlooredInt(rect.x()), in ToFlooredRectDeprecated()
77 ToFlooredInt(rect.y()), in ToFlooredRectDeprecated()
78 ToFlooredInt(rect.width()), in ToFlooredRectDeprecated()
79 ToFlooredInt(rect.height())); in ToFlooredRectDeprecated()
Dvector2d_conversions.cc12 int x = ToFlooredInt(vector2d.x()); in ToFlooredVector2d()
13 int y = ToFlooredInt(vector2d.y()); in ToFlooredVector2d()
Dpoint_conversions.cc12 int x = ToFlooredInt(point.x()); in ToFlooredPoint()
13 int y = ToFlooredInt(point.y()); in ToFlooredPoint()
Dsize_conversions.cc12 int w = ToFlooredInt(size.width()); in ToFlooredSize()
13 int h = ToFlooredInt(size.height()); in ToFlooredSize()
Dsafe_integer_conversions.h16 inline int ToFlooredInt(float value) { in ToFlooredInt() function
24 inline int ToFlooredInt(double value) { in ToFlooredInt() function
Dscroll_offset.h109 return Vector2d(ToFlooredInt(v.x()), ToFlooredInt(v.y())); in ScrollOffsetToFlooredVector2d()