Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
gm
crbug_913349.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2019 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_913349, canvas, 500, 600) {
14
SkPaint
paint
;
15
16
paint
.setAntiAlias(
true
);
17
paint
.setStyle(
SkPaint::kFill_Style
);
18
19
// This is a reduction from crbug.com/913349 to 5 verts.
20
SkPathBuilder
path;
21
path.moveTo( 349.5, 225.75);
22
path.lineTo( 96.5, 74);
23
path.lineTo( 500.50, 226);
24
path.lineTo( 350, 226);
25
path.lineTo( 350, 224);
26
27
canvas->drawPath(path.detach(),
paint
);
28
}
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