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 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "gm/gm.h" |
Ben Wagner | 6a34f3a | 2019-05-01 10:59:30 -0400 | [diff] [blame] | 9 | #include "include/core/SkCanvas.h" |
| 10 | #include "include/core/SkPaint.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/core/SkPath.h" |
caryclark | ba150cc | 2016-06-01 04:42:02 -0700 | [diff] [blame] | 12 | |
| 13 | DEF_SIMPLE_GM(bug615686, canvas, 250, 250) { |
| 14 | SkPaint p; |
| 15 | p.setAntiAlias(true); |
| 16 | p.setStyle(SkPaint::kStroke_Style); |
| 17 | p.setStrokeWidth(20); |
| 18 | SkPath path; |
| 19 | path.moveTo(0, 0); |
| 20 | path.cubicTo(200, 200, 0, 200, 200, 0); |
| 21 | canvas->drawPath(path, p); |
| 22 | } |