| caryclark | ba150cc | 2016-06-01 04:42:02 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 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.h" | ||||
| 9 | #include "SkPath.h" | ||||
| 10 | |||||
| 11 | DEF_SIMPLE_GM(bug615686, canvas, 250, 250) { | ||||
| 12 | SkPaint p; | ||||
| 13 | p.setAntiAlias(true); | ||||
| 14 | p.setStyle(SkPaint::kStroke_Style); | ||||
| 15 | p.setStrokeWidth(20); | ||||
| 16 | SkPath path; | ||||
| 17 | path.moveTo(0, 0); | ||||
| 18 | path.cubicTo(200, 200, 0, 200, 200, 0); | ||||
| 19 | canvas->drawPath(path, p); | ||||
| 20 | } | ||||