10 for (
int left: { -100, 0, 100, 1000 } ) {
11 for (
int right: { 0, 100, 1000 } ) {
14 SkDebugf(
"subset: %4d, %4d, %4d, %4d ",
b.fLeft,
b.fTop,
b.fRight,
b.fBottom);
15 SkDebugf(
"success; %s", success ?
"true" :
"false");
18 SkDebugf(
" subset: %d, %d, %d, %d",
s.fLeft,
s.fTop,
s.fRight,
s.fBottom);
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void getBounds(SkRect *bounds) const
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
Optional< SkRect > bounds
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)