Stephen White | cfe1264 | 2018-09-26 17:25:59 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 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" |
| 9 | #include "include/core/SkCanvas.h" |
Ben Wagner | 7fde8e1 | 2019-05-01 17:28:53 -0400 | [diff] [blame] | 10 | #include "include/core/SkPaint.h" |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/core/SkPath.h" |
Stephen White | cfe1264 | 2018-09-26 17:25:59 -0400 | [diff] [blame] | 12 | |
| 13 | DEF_SIMPLE_GM(crbug_884166, canvas, 300, 300) { |
| 14 | SkPaint paint; |
| 15 | |
| 16 | paint.setAntiAlias(true); |
| 17 | paint.setStyle(SkPaint::kFill_Style); |
| 18 | |
| 19 | SkPath path; |
| 20 | path.moveTo(153.25, 280.75); |
| 21 | path.lineTo(161.75, 281.75); |
| 22 | path.lineTo(164.25, 282.00); |
| 23 | path.lineTo( 0.00, 276.00); |
| 24 | path.lineTo(161.50, 0.00); |
| 25 | path.lineTo(286.25, 231.25); |
| 26 | path.lineTo(163.75, 282.00); |
| 27 | path.lineTo(150.00, 280.00); |
| 28 | canvas->drawPath(path, paint); |
| 29 | } |