Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
gm
crbug_788500.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "
gm/gm.h
"
9
#include "
include/core/SkCanvas.h
"
10
#include "
include/core/SkPaint.h
"
11
#include "
include/core/SkPathBuilder.h
"
12
13
DEF_SIMPLE_GM
(crbug_788500, canvas, 300, 300) {
14
SkPathBuilder
path;
15
path.setFillType(
SkPathFillType::kEvenOdd
);
16
path.moveTo(0, 0);
17
path.moveTo(245.5f, 98.5f);
18
path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75);
19
20
SkPaint
paint
;
21
paint
.setAntiAlias(
true
);
22
canvas->drawPath(path.detach(),
paint
);
23
}
SkCanvas.h
SkPaint.h
SkPathBuilder.h
SkPathFillType::kEvenOdd
@ kEvenOdd
SkPaint
Definition
SkPaint.h:44
SkPathBuilder
Definition
SkPathBuilder.h:25
paint
const Paint & paint
Definition
color_source.cc:38
gm.h
DEF_SIMPLE_GM
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
Definition
gm.h:50
Generated on Fri Apr 26 2024 06:16:01 for Flutter Engine by
1.9.8