Searched refs:ToFlooredInt (Results 1 – 7 of 7) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | safe_integer_conversions_unittest.cc | 13 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()
|
D | rect_conversions.cc | 16 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()
|
D | vector2d_conversions.cc | 12 int x = ToFlooredInt(vector2d.x()); in ToFlooredVector2d() 13 int y = ToFlooredInt(vector2d.y()); in ToFlooredVector2d()
|
D | point_conversions.cc | 12 int x = ToFlooredInt(point.x()); in ToFlooredPoint() 13 int y = ToFlooredInt(point.y()); in ToFlooredPoint()
|
D | size_conversions.cc | 12 int w = ToFlooredInt(size.width()); in ToFlooredSize() 13 int h = ToFlooredInt(size.height()); in ToFlooredSize()
|
D | safe_integer_conversions.h | 16 inline int ToFlooredInt(float value) { in ToFlooredInt() function 24 inline int ToFlooredInt(double value) { in ToFlooredInt() function
|
D | scroll_offset.h | 109 return Vector2d(ToFlooredInt(v.x()), ToFlooredInt(v.y())); in ScrollOffsetToFlooredVector2d()
|