17int FloorIgnoringError(
float f,
float error) {
22int CeilIgnoringError(
float f,
float error) {
43 int top = FloorIgnoringError(r.
y(),
error);
62 int top = CeilIgnoringError(r.
y(),
error);
71 float float_min_x = rect.x();
72 float float_min_y = rect.y();
73 float float_max_x = rect.right();
74 float float_max_y = rect.bottom();
95 float float_min_x = rect.x();
96 float float_min_y = rect.y();
97 float float_max_x = rect.right();
98 float float_max_y = rect.bottom();
105 return (std::abs(min_x - float_min_x) < distance) &&
106 (std::abs(min_y - float_min_y) < distance) &&
107 (std::abs(max_x - float_max_x) < distance) &&
108 (std::abs(max_y - float_max_y) < distance);
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
constexpr float y() const
constexpr float width() const
constexpr float height() const
constexpr float right() const
constexpr float bottom() const
constexpr float x() const
void SetByBounds(int left, int top, int right, int bottom)
const uint8_t uint32_t uint32_t GError ** error
Dst ClampFloor(Src value)
Dst ClampRound(Src value)
Rect ToEnclosingRectIgnoringError(const RectF &r, float error)
Rect ToEnclosingRect(const RectF &r)
gfx::Rect ToRoundedRect(const gfx::RectF &rect)
bool IsNearestRectWithinDistance(const gfx::RectF &rect, float distance)
Rect ToEnclosedRectIgnoringError(const RectF &r, float error)
Rect ToEnclosedRect(const RectF &rect)
Rect ToFlooredRectDeprecated(const RectF &rect)
Rect ToNearestRect(const RectF &rect)
#define BASE_DCHECK(condition)