| 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 "gm/gm.h" |
| 9 |
#include "include/core/SkCanvas.h" |
| 10 |
#include "include/core/SkPaint.h" |
| 11 |
#include "include/core/SkPathBuilder.h" |
| 12 |
|
| 13 |
DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) { |
| 14 |
SkPathBuilder path; |
| 15 |
path.setFillType(SkPathFillType::kEvenOdd); |
| 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.detach(), paint); |
| 23 |
} |