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.
22 lines
600 B
22 lines
600 B
4 months ago
|
/*
|
||
|
* Copyright 2016 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(bug615686, canvas, 250, 250) {
|
||
|
SkPaint p;
|
||
|
p.setAntiAlias(true);
|
||
|
p.setStyle(SkPaint::kStroke_Style);
|
||
|
p.setStrokeWidth(20);
|
||
|
canvas->drawPath(SkPathBuilder().moveTo(0, 0)
|
||
|
.cubicTo(200, 200, 0, 200, 200, 0)
|
||
|
.detach(), p);
|
||
|
}
|