blob: 3938b3e1c6c341382f1532ebd245bad09853b5e5 [file] [log] [blame]
Brian Salomon29f9ed42017-11-29 10:52:00 -05001/*
2 * Copyright 2017 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"
10#include "include/core/SkPaint.h"
Mike Reede9d783c2020-08-17 14:14:13 -040011#include "include/core/SkPathBuilder.h"
Brian Salomon29f9ed42017-11-29 10:52:00 -050012
13DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) {
Mike Reede9d783c2020-08-17 14:14:13 -040014 SkPathBuilder path;
Mike Reed7d34dc72019-11-26 12:17:17 -050015 path.setFillType(SkPathFillType::kEvenOdd);
Brian Salomon29f9ed42017-11-29 10:52:00 -050016 path.moveTo(0, 0);
17 path.moveTo(245.5f, 98.5f);
18 path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75);
19
20 SkPaint paint;
21 paint.setAntiAlias(true);
Mike Reede9d783c2020-08-17 14:14:13 -040022 canvas->drawPath(path.detach(), paint);
Brian Salomon29f9ed42017-11-29 10:52:00 -050023}