4REG_FIDDLE(AutoCanvasRestore_restore, 256, 256,
true, 0) {
6 for (
bool callRestore : {
false,
true } ) {
7 for (
bool saveCanvas : {
false,
true} ) {
12 SkDebugf(
"saveCanvas: %s before restore: %d\n",
14 if (callRestore) autoRestore.
restore();
15 SkDebugf(
"saveCanvas: %s after restore: %d\n",
REG_FIDDLE(AutoCanvasRestore_restore, 256, 256, true, 0)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)