Flutter Engine
The Flutter Engine
Functions
bug615686.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPathBuilder.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM (bug615686, canvas, 250, 250)
 

Function Documentation

◆ DEF_SIMPLE_GM()

DEF_SIMPLE_GM ( bug615686  ,
canvas  ,
250  ,
250   
)

Definition at line 13 of file bug615686.cpp.

13 {
14 SkPaint p;
15 p.setAntiAlias(true);
16 p.setStyle(SkPaint::kStroke_Style);
17 p.setStrokeWidth(20);
18 canvas->drawPath(SkPathBuilder().moveTo(0, 0)
19 .cubicTo(200, 200, 0, 200, 200, 0)
20 .detach(), p);
21}
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194