blob: 96db8bde83d1e28e3b7ac1372527ae37fee823ba [file] [log] [blame]
Stephen Whitecfe12642018-09-26 17:25:59 -04001/*
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 Kleinc0bd9f92019-04-23 12:05:21 -05008#include "gm/gm.h"
9#include "include/core/SkCanvas.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040010#include "include/core/SkPaint.h"
Mike Reede9d783c2020-08-17 14:14:13 -040011#include "include/core/SkPathBuilder.h"
Stephen Whitecfe12642018-09-26 17:25:59 -040012
13DEF_SIMPLE_GM(crbug_884166, canvas, 300, 300) {
14 SkPaint paint;
15
16 paint.setAntiAlias(true);
17 paint.setStyle(SkPaint::kFill_Style);
18
Mike Reede9d783c2020-08-17 14:14:13 -040019 SkPathBuilder path;
Stephen Whitecfe12642018-09-26 17:25:59 -040020 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);
Mike Reede9d783c2020-08-17 14:14:13 -040028 canvas->drawPath(path.detach(), paint);
Stephen Whitecfe12642018-09-26 17:25:59 -040029}