Searched refs:ToRoundedInt (Results 1 – 9 of 9) sorted by relevance
/external/chromium_org/ui/gfx/ |
D | safe_integer_conversions_unittest.cc | 82 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 …]
|
D | rect_conversions.cc | 41 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()
|
D | point_conversions.cc | 24 int x = ToRoundedInt(point.x()); in ToRoundedPoint() 25 int y = ToRoundedInt(point.y()); in ToRoundedPoint()
|
D | size_conversions.cc | 24 int w = ToRoundedInt(size.width()); in ToRoundedSize() 25 int h = ToRoundedInt(size.height()); in ToRoundedSize()
|
D | vector2d_conversions.cc | 24 int x = ToRoundedInt(vector2d.x()); in ToRoundedVector2d() 25 int y = ToRoundedInt(vector2d.y()); in ToRoundedVector2d()
|
D | safe_integer_conversions.h | 33 inline int ToRoundedInt(float value) { in ToRoundedInt() function
|
D | transform.cc | 524 point->SetPoint(ToRoundedInt(p[0]), ToRoundedInt(p[1])); in TransformPointInternal()
|
/external/chromium_org/cc/layers/ |
D | nine_patch_layer_impl_unittest.cc | 27 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/ |
D | tween.cc | 64 return std::min(std::max(ToRoundedInt(f * 255.f), 0), 255); in FloatToColorByte()
|