blob: 935593ebaaa072d876bd230dd1f9893f165a5db3 [file] [log] [blame]
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=9b7fa2fe855642ffff6538829db15328
REG_FIDDLE(Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star_const_SkImageFilter_star, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkCanvas::SaveLayerRec rec1;
SkCanvas::SaveLayerRec rec2(nullptr, nullptr, nullptr, 0);
SkDebugf("rec1 %c= rec2\n", rec1.fBounds == rec2.fBounds
&& rec1.fPaint == rec2.fPaint
&& rec1.fBackdrop == rec2.fBackdrop
&& rec1.fSaveLayerFlags == rec2.fSaveLayerFlags ? '=' : '!');
}
} // END FIDDLE