Home
last modified time | relevance | path

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

/external/chromium_org/ui/gfx/
Dsafe_integer_conversions_unittest.cc59 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 …]
Drect_conversions.cc20 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()
Dpoint_conversions.cc18 int x = ToCeiledInt(point.x()); in ToCeiledPoint()
19 int y = ToCeiledInt(point.y()); in ToCeiledPoint()
Dsize_conversions.cc18 int w = ToCeiledInt(size.width()); in ToCeiledSize()
19 int h = ToCeiledInt(size.height()); in ToCeiledSize()
Dvector2d_conversions.cc18 int x = ToCeiledInt(vector2d.x()); in ToCeiledVector2d()
19 int y = ToCeiledInt(vector2d.y()); in ToCeiledVector2d()
Dsafe_integer_conversions.h29 inline int ToCeiledInt(float value) { in ToCeiledInt() function
/external/chromium_org/ui/base/resource/
Dresource_bundle.cc117 gfx::ToCeiledInt(image.width() * scale), in GetImageForScale()
118 gfx::ToCeiledInt(image.height() * scale)); in GetImageForScale()