blob: d9e8ae72f448009ca3ea7c6a6c20b4296124dd82 [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 Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkPath.h"
Stephen Whitecfe12642018-09-26 17:25:59 -040012
13DEF_SIMPLE_GM(crbug_887103, canvas, 520, 520) {
14 SkPaint paint;
15
16 paint.setAntiAlias(true);
17 paint.setStyle(SkPaint::kFill_Style);
18
19 SkPath path;
20 path.moveTo(510, 20);
21 path.lineTo(500, 20);
22 path.lineTo(510, 500);
23
24 path.moveTo(500, 20);
25 path.lineTo(510, 500);
26 path.lineTo(500, 510);
27
28 path.moveTo(500, 30);
29 path.lineTo(510, 10);
30 path.lineTo( 10, 30);
31 canvas->drawPath(path, paint);
32}