You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
596 B
24 lines
596 B
/*
|
|
* Copyright 2017 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "gm/gm.h"
|
|
#include "include/core/SkCanvas.h"
|
|
#include "include/core/SkPaint.h"
|
|
#include "include/core/SkPathBuilder.h"
|
|
|
|
DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) {
|
|
SkPathBuilder path;
|
|
path.setFillType(SkPathFillType::kEvenOdd);
|
|
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);
|
|
canvas->drawPath(path.detach(), paint);
|
|
}
|