2017-11-29 15:52:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "gm/gm.h"
|
|
|
|
#include "include/core/SkCanvas.h"
|
|
|
|
#include "include/core/SkPaint.h"
|
2020-08-17 18:14:13 +00:00
|
|
|
#include "include/core/SkPathBuilder.h"
|
2017-11-29 15:52:00 +00:00
|
|
|
|
|
|
|
DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) {
|
2020-08-17 18:14:13 +00:00
|
|
|
SkPathBuilder path;
|
2019-11-26 17:17:17 +00:00
|
|
|
path.setFillType(SkPathFillType::kEvenOdd);
|
2017-11-29 15:52:00 +00:00
|
|
|
path.moveTo(0, 0);
|
|
|
|
path.moveTo(245.5f, 98.5f);
|
|
|
|
path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75);
|
|
|
|
|
|
|
|
SkPaint paint;
|
|
|
|
paint.setAntiAlias(true);
|
2020-08-17 18:14:13 +00:00
|
|
|
canvas->drawPath(path.detach(), paint);
|
2017-11-29 15:52:00 +00:00
|
|
|
}
|