Searched refs:ScaleToEnclosingRectSafe (Results 1 – 2 of 2) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | rect_unittest.cc | 718 ScaleToEnclosingRectSafe(tests[i].input_rect, tests[i].input_scale); in TEST() 1101 TEST(RectTest, ScaleToEnclosingRectSafe) { in TEST() argument 1106 EXPECT_EQ(ScaleToEnclosingRectSafe(xy_underflow, 100000, 100000), in TEST() 1112 EXPECT_EQ(ScaleToEnclosingRectSafe(xy_overflow, 100000, 100000), in TEST() 1118 EXPECT_EQ(ScaleToEnclosingRectSafe(size_underflow, -100000, -100000), in TEST() 1122 EXPECT_EQ(ScaleToEnclosingRectSafe(size_overflow, 100000, 100000), in TEST() 1126 EXPECT_EQ(ScaleToEnclosingRectSafe(size_overflow2, 100000, 100000), in TEST() 1130 EXPECT_EQ(ScaleToEnclosingRectSafe(max_rect, max_int, max_int), in TEST() 1135 EXPECT_EQ(ScaleToEnclosingRectSafe(min_rect, 2, 3.5), min_rect); in TEST() 1136 EXPECT_EQ(ScaleToEnclosingRectSafe(min_rect, max_int, max_int), min_rect); in TEST() [all …]
|
D | rect.h | 303 inline Rect ScaleToEnclosingRectSafe(const Rect& rect, in ScaleToEnclosingRectSafe() function 315 inline Rect ScaleToEnclosingRectSafe(const Rect& rect, float scale) { in ScaleToEnclosingRectSafe() function 316 return ScaleToEnclosingRectSafe(rect, scale, scale); in ScaleToEnclosingRectSafe()
|