Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
gm
crbug_887103.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2018 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_887103, canvas, 520, 520) {
14
SkPaint
paint
;
15
16
paint
.setAntiAlias(
true
);
17
paint
.setStyle(
SkPaint::kFill_Style
);
18
19
SkPathBuilder
path;
20
path.moveTo(510, 20);
21
path.lineTo(500, 20);
22
path.lineTo(510, 500);
23
24
path.moveTo(500, 20);
25
path.lineTo(510, 500);
26
path.lineTo(500, 510);
27
28
path.moveTo(500, 30);
29
path.lineTo(510, 10);
30
path.lineTo( 10, 30);
31
canvas->drawPath(path.detach(),
paint
);
32
}
SkCanvas.h
SkPaint.h
SkPathBuilder.h
SkPaint
Definition
SkPaint.h:44
SkPaint::kFill_Style
@ kFill_Style
set to fill geometry
Definition
SkPaint.h:193
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