7 auto debugster = [](
const char* label,
const SkRegion& region) ->
void {
8 SkDebugf(
"%s: region is %s" "rect\n", label, region.
isRect() ?
"" :
"not ");
11 debugster(
"initial", region);
13 debugster(
"set rect", region);
15 debugster(
"set empty", region);
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool setRect(const SkIRect &rect)
#define REG_FIDDLE(NAME, W, H, TEXT, I)