Searched refs:ToCeiledInt (Results 1 – 6 of 6) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | safe_integer_conversions_unittest.cc | 34 TEST(SafeIntegerConversions, ToCeiledInt) { in TEST() argument 42 EXPECT_EQ(int_max, ToCeiledInt(infinity)); in TEST() 43 EXPECT_EQ(int_max, ToCeiledInt(max)); in TEST() 44 EXPECT_EQ(int_max, ToCeiledInt(max + 100)); in TEST() 46 EXPECT_EQ(-100, ToCeiledInt(-100.5f)); in TEST() 47 EXPECT_EQ(0, ToCeiledInt(0.f)); in TEST() 48 EXPECT_EQ(101, ToCeiledInt(100.5f)); in TEST() 50 EXPECT_EQ(int_min, ToCeiledInt(-infinity)); in TEST() 51 EXPECT_EQ(int_min, ToCeiledInt(min)); in TEST() 52 EXPECT_EQ(int_min, ToCeiledInt(min - 100)); in TEST()
|
D | rect_conversions.cc | 17 int right = r.width() ? ToCeiledInt(r.right()) : left; in ToEnclosingRect() 19 int bottom = r.height() ? ToCeiledInt(r.bottom()) : top; in ToEnclosingRect() 28 result.SetByBounds(ToCeiledInt(rect.x()), ToCeiledInt(rect.y()), in ToEnclosedRect()
|
D | vector2d_conversions.cc | 18 int x = ToCeiledInt(vector2d.x()); in ToCeiledVector2d() 19 int y = ToCeiledInt(vector2d.y()); in ToCeiledVector2d()
|
D | point_conversions.cc | 18 int x = ToCeiledInt(point.x()); in ToCeiledPoint() 19 int y = ToCeiledInt(point.y()); in ToCeiledPoint()
|
D | size_conversions.cc | 18 int w = ToCeiledInt(size.width()); in ToCeiledSize() 19 int h = ToCeiledInt(size.height()); in ToCeiledSize()
|
D | safe_integer_conversions.h | 20 inline int ToCeiledInt(float value) { in ToCeiledInt() function 28 inline int ToCeiledInt(double value) { in ToCeiledInt() function
|