2018-09-26 21:25:59 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2018 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"
|
2019-05-01 21:28:53 +00:00
|
|
|
#include "include/core/SkPaint.h"
|
2020-08-17 18:14:13 +00:00
|
|
|
#include "include/core/SkPathBuilder.h"
|
2018-09-26 21:25:59 +00:00
|
|
|
|
|
|
|
DEF_SIMPLE_GM(crbug_887103, canvas, 520, 520) {
|
|
|
|
SkPaint paint;
|
|
|
|
|
|
|
|
paint.setAntiAlias(true);
|
|
|
|
paint.setStyle(SkPaint::kFill_Style);
|
|
|
|
|
2020-08-17 18:14:13 +00:00
|
|
|
SkPathBuilder path;
|
2018-09-26 21:25:59 +00:00
|
|
|
path.moveTo(510, 20);
|
|
|
|
path.lineTo(500, 20);
|
|
|
|
path.lineTo(510, 500);
|
|
|
|
|
|
|
|
path.moveTo(500, 20);
|
|
|
|
path.lineTo(510, 500);
|
|
|
|
path.lineTo(500, 510);
|
|
|
|
|
|
|
|
path.moveTo(500, 30);
|
|
|
|
path.lineTo(510, 10);
|
|
|
|
path.lineTo( 10, 30);
|
2020-08-17 18:14:13 +00:00
|
|
|
canvas->drawPath(path.detach(), paint);
|
2018-09-26 21:25:59 +00:00
|
|
|
}
|