298 {
300 allowed.
outset(bounds_pad_.
fX, bounds_pad_.
fY);
301 allowed =
Scale(allowed, scale_);
302 allowed.
outset(absolute_pad_.
fX, absolute_pad_.
fY);
305 }
308 int pad_left = std::max(0, pix_bounds.
fLeft - rounded.
fLeft);
309 int pad_top = std::max(0, pix_bounds.
fTop - rounded.
fTop);
310 int pad_right = std::max(0, pix_bounds.
fRight - rounded.
fRight);
311 int pad_bottom = std::max(0, pix_bounds.
fBottom - rounded.
fBottom);
312 int allowed_pad_x = std::max(pad_left, pad_right);
313 int allowed_pad_y = std::max(pad_top, pad_bottom);
314 if (worst_bounds_pad_x > allowed_pad_x ||
315 worst_bounds_pad_y > allowed_pad_y) {
317 << allowed_pad_x << ", " << allowed_pad_y;
318 }
319 return (worst_bounds_pad_x > allowed_pad_x ||
320 worst_bounds_pad_y > allowed_pad_y);
321 }
#define FML_LOG(severity)
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds
static SkRect Make(const SkISize &size)
bool intersect(const SkRect &r)
void outset(float dx, float dy)
void roundOut(SkIRect *dst) const