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 REG_FIDDLE(RRect_empty_constructor, 256, 60, false, 0) { draw(SkCanvas * canvas)5void draw(SkCanvas* canvas) { 6 SkRRect rrect; 7 SkPaint p; 8 p.setStyle(SkPaint::kStroke_Style); 9 p.setStrokeWidth(10); 10 canvas->drawRRect(rrect, p); 11 rrect.setRect({10, 10, 100, 50}); 12 canvas->drawRRect(rrect, p); 13 } 14 } // END FIDDLE 15