OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ToFlooredInt
(Results
1 - 6
of
6
) sorted by null
/external/chromium_org/ui/gfx/
point_conversions.cc
12
int x =
ToFlooredInt
(point.x());
13
int y =
ToFlooredInt
(point.y());
rect_conversions.cc
15
int min_x =
ToFlooredInt
(rect.x());
16
int min_y =
ToFlooredInt
(rect.y());
29
int width = std::max(
ToFlooredInt
(max_x) - min_x, 0);
30
int height = std::max(
ToFlooredInt
(max_y) - min_y, 0);
74
return Rect(
ToFlooredInt
(rect.x()),
75
ToFlooredInt
(rect.y()),
76
ToFlooredInt
(rect.width()),
77
ToFlooredInt
(rect.height()));
size_conversions.cc
12
int w =
ToFlooredInt
(size.width());
13
int h =
ToFlooredInt
(size.height());
vector2d_conversions.cc
12
int x =
ToFlooredInt
(vector2d.x());
13
int y =
ToFlooredInt
(vector2d.y());
safe_integer_conversions_unittest.cc
36
TEST(SafeIntegerConversions,
ToFlooredInt
) {
37
EXPECT_EQ(0,
ToFlooredInt
(std::numeric_limits<float>::quiet_NaN()));
46
EXPECT_EQ(int_max,
ToFlooredInt
(infinity));
47
EXPECT_EQ(int_max,
ToFlooredInt
(max));
48
EXPECT_EQ(int_max,
ToFlooredInt
(max + 100));
50
EXPECT_EQ(-101,
ToFlooredInt
(-100.5f));
51
EXPECT_EQ(0,
ToFlooredInt
(0));
52
EXPECT_EQ(100,
ToFlooredInt
(100.5f));
54
EXPECT_EQ(int_min,
ToFlooredInt
(-infinity));
55
EXPECT_EQ(int_min,
ToFlooredInt
(min))
[
all
...]
safe_integer_conversions.h
25
inline int
ToFlooredInt
(float value) {
Completed in 377 milliseconds