Home
last modified time | relevance | path

Searched refs:ToRoundedInt (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/ui/gfx/
Dsafe_integer_conversions_unittest.cc82 TEST(SafeIntegerConversions, ToRoundedInt) { in TEST() argument
83 EXPECT_EQ(0, ToRoundedInt(std::numeric_limits<float>::quiet_NaN())); in TEST()
92 EXPECT_EQ(int_max, ToRoundedInt(infinity)); in TEST()
93 EXPECT_EQ(int_max, ToRoundedInt(max)); in TEST()
94 EXPECT_EQ(int_max, ToRoundedInt(max + 100)); in TEST()
96 EXPECT_EQ(-100, ToRoundedInt(-100.1f)); in TEST()
97 EXPECT_EQ(-101, ToRoundedInt(-100.5f)); in TEST()
98 EXPECT_EQ(-101, ToRoundedInt(-100.9f)); in TEST()
99 EXPECT_EQ(0, ToRoundedInt(0)); in TEST()
100 EXPECT_EQ(100, ToRoundedInt(100.1f)); in TEST()
[all …]
Drect_conversions.cc41 int min_x = ToRoundedInt(float_min_x); in ToNearestRect()
42 int min_y = ToRoundedInt(float_min_y); in ToNearestRect()
43 int max_x = ToRoundedInt(float_max_x); in ToNearestRect()
44 int max_y = ToRoundedInt(float_max_y); in ToNearestRect()
62 int min_x = ToRoundedInt(float_min_x); in IsNearestRectWithinDistance()
63 int min_y = ToRoundedInt(float_min_y); in IsNearestRectWithinDistance()
64 int max_x = ToRoundedInt(float_max_x); in IsNearestRectWithinDistance()
65 int max_y = ToRoundedInt(float_max_y); in IsNearestRectWithinDistance()
Dpoint_conversions.cc24 int x = ToRoundedInt(point.x()); in ToRoundedPoint()
25 int y = ToRoundedInt(point.y()); in ToRoundedPoint()
Dsize_conversions.cc24 int w = ToRoundedInt(size.width()); in ToRoundedSize()
25 int h = ToRoundedInt(size.height()); in ToRoundedSize()
Dvector2d_conversions.cc24 int x = ToRoundedInt(vector2d.x()); in ToRoundedVector2d()
25 int y = ToRoundedInt(vector2d.y()); in ToRoundedVector2d()
Dsafe_integer_conversions.h33 inline int ToRoundedInt(float value) { in ToRoundedInt() function
Dtransform.cc524 point->SetPoint(ToRoundedInt(p[0]), ToRoundedInt(p[1])); in TransformPointInternal()
/external/chromium_org/cc/layers/
Dnine_patch_layer_impl_unittest.cc27 return gfx::Rect(gfx::ToRoundedInt(rect_f.x()), in ToRoundedIntRect()
28 gfx::ToRoundedInt(rect_f.y()), in ToRoundedIntRect()
29 gfx::ToRoundedInt(rect_f.width()), in ToRoundedIntRect()
30 gfx::ToRoundedInt(rect_f.height())); in ToRoundedIntRect()
/external/chromium_org/ui/gfx/animation/
Dtween.cc64 return std::min(std::max(ToRoundedInt(f * 255.f), 0), 255); in FloatToColorByte()