Searched refs:ToCeiledInt (Results 1 – 7 of 7) sorted by relevance
/external/chromium_org/ui/gfx/ |
D | safe_integer_conversions_unittest.cc | 59 TEST(SafeIntegerConversions, ToCeiledInt) { in TEST() argument 60 EXPECT_EQ(0, ToCeiledInt(std::numeric_limits<float>::quiet_NaN())); in TEST() 69 EXPECT_EQ(int_max, ToCeiledInt(infinity)); in TEST() 70 EXPECT_EQ(int_max, ToCeiledInt(max)); in TEST() 71 EXPECT_EQ(int_max, ToCeiledInt(max + 100)); in TEST() 73 EXPECT_EQ(-100, ToCeiledInt(-100.5f)); in TEST() 74 EXPECT_EQ(0, ToCeiledInt(0)); in TEST() 75 EXPECT_EQ(101, ToCeiledInt(100.5f)); in TEST() 77 EXPECT_EQ(int_min, ToCeiledInt(-infinity)); in TEST() 78 EXPECT_EQ(int_min, ToCeiledInt(min)); in TEST() [all …]
|
D | rect_conversions.cc | 20 int width = rect.width() == 0 ? 0 : std::max(ToCeiledInt(max_x) - min_x, 0); in ToEnclosingRect() 21 int height = rect.height() == 0 ? 0 : std::max(ToCeiledInt(max_y) - min_y, 0); in ToEnclosingRect() 26 int min_x = ToCeiledInt(rect.x()); in ToEnclosedRect() 27 int min_y = ToCeiledInt(rect.y()); in ToEnclosedRect()
|
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 | vector2d_conversions.cc | 18 int x = ToCeiledInt(vector2d.x()); in ToCeiledVector2d() 19 int y = ToCeiledInt(vector2d.y()); in ToCeiledVector2d()
|
D | safe_integer_conversions.h | 29 inline int ToCeiledInt(float value) { in ToCeiledInt() function
|
/external/chromium_org/ui/base/resource/ |
D | resource_bundle.cc | 117 gfx::ToCeiledInt(image.width() * scale), in GetImageForScale() 118 gfx::ToCeiledInt(image.height() * scale)); in GetImageForScale()
|