• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 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(weird_RRect_bug, 256, 256, false, 0) {
draw(SkCanvas * canvas)5 void draw(SkCanvas* canvas) {
6     canvas->clear(SK_ColorWHITE);
7     // canvas->scale(2, 2);
8 
9     SkPaint p;
10     p.setAntiAlias(false);
11     p.setStrokeWidth(3);
12     p.setStyle(SkPaint::kStroke_Style);
13 
14     SkRect r = SkRect::MakeXYWH(20, 20, 20, 20);
15 
16     SkRRect rr = SkRRect::MakeRectXY(r, 5, 5);
17 
18     canvas->drawRRect(rr, p);
19 }
20 }  // END FIDDLE
21