17int FloorIgnoringError(
float f,
float error) {
22int CeilIgnoringError(
float f,
float error) {
36 result.SetByBounds(left, top, right, bottom);
41 int left = FloorIgnoringError(r.
x(),
error);
43 int top = FloorIgnoringError(r.
y(),
error);
47 result.SetByBounds(left, top, right, bottom);
60 int left = CeilIgnoringError(r.
x(),
error);
62 int top = CeilIgnoringError(r.
y(),
error);
66 result.SetByBounds(left, top, right, bottom);
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();
89 result.SetByBounds(min_x, min_y, max_x, max_y);
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();
117 result.SetByBounds(left, top, right, bottom);
constexpr float y() const
constexpr float width() const
constexpr float height() const
constexpr float right() const
constexpr float bottom() const
constexpr float x() const
const uint8_t uint32_t uint32_t GError ** error
sk_sp< SkBlender > blender SkRect rect
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)
SIN Vec< N, float > abs(const Vec< N, float > &x)
#define BASE_DCHECK(condition)