Go to the source code of this file.
◆ check_glyph_position()
static bool check_glyph_position |
( |
SkPoint |
position | ) |
|
|
static |
Definition at line 41 of file SkDraw_text.cpp.
41 {
42
43
44 auto gt = [](
float a,
int b) {
return !(
a <= (
float)
b); };
45 auto lt = [](
float a,
int b) {
return !(
a >= (
float)
b); };
46 return !(gt(position.
fX, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) ||
47 lt(position.
fX, INT_MIN - (INT16_MIN + 0 )) ||
48 gt(position.
fY, INT_MAX - (INT16_MAX + SkTo<int>(UINT16_MAX))) ||
49 lt(position.
fY, INT_MIN - (INT16_MIN + 0 )));
50}