blob: cb7220a2efbd811bbdd5e935389e6335f7d2643c [file] [log] [blame]
Stephen Whitec4dbc372019-05-22 10:50:14 -04001/*
2 * Copyright 2019 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"
Mike Reede9d783c2020-08-17 14:14:13 -040011#include "include/core/SkPathBuilder.h"
Stephen Whitec4dbc372019-05-22 10:50:14 -040012
13DEF_SIMPLE_GM(crbug_913349, canvas, 500, 600) {
14 SkPaint paint;
15
16 paint.setAntiAlias(true);
17 paint.setStyle(SkPaint::kFill_Style);
18
19 // This is a reduction from crbug.com/913349 to 5 verts.
Mike Reede9d783c2020-08-17 14:14:13 -040020 SkPathBuilder path;
Stephen Whitec4dbc372019-05-22 10:50:14 -040021 path.moveTo( 349.5, 225.75);
22 path.lineTo( 96.5, 74);
23 path.lineTo( 500.50, 226);
24 path.lineTo( 350, 226);
25 path.lineTo( 350, 224);
26
Mike Reede9d783c2020-08-17 14:14:13 -040027 canvas->drawPath(path.detach(), paint);
Stephen Whitec4dbc372019-05-22 10:50:14 -040028}