1 // Copyright 2019 Google LLC. 2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 3 #include "tools/fiddle/examples.h" 4 // HASH=027f920259888fc19591ea9a90d92873 5 REG_FIDDLE(Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star, 256, 256, true, 0) { draw(SkCanvas * canvas)6void draw(SkCanvas* canvas) { 7 SkCanvas::SaveLayerRec rec1; 8 SkCanvas::SaveLayerRec rec2(nullptr, nullptr); 9 SkDebugf("rec1 %c= rec2\n", rec1.fBounds == rec2.fBounds 10 && rec1.fPaint == rec2.fPaint 11 && rec1.fBackdrop == rec2.fBackdrop 12 && rec1.fSaveLayerFlags == rec2.fSaveLayerFlags ? '=' : '!'); 13 } 14 } // END FIDDLE 15