• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2017 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "SkCanvas.h"
9 #include "SkPaint.h"
10 #include "SkPath.h"
11 #include "gm.h"
12 
13 DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) {
14     SkPath path;
15     path.setFillType(SkPath::kEvenOdd_FillType);
16     path.moveTo(0, 0);
17     path.moveTo(245.5f, 98.5f);
18     path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75);
19 
20     SkPaint paint;
21     paint.setAntiAlias(true);
22     canvas->drawPath(path, paint);
23 }
24