Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
docs
examples
bug7573_1.cpp
Go to the documentation of this file.
1
// Copyright 2020 Google LLC.
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
#include "
tools/fiddle/examples.h
"
4
REG_FIDDLE_SRGB
(bug7573_1, 260, 260,
false
, 5, 0,
false
) {
5
void
draw
(
SkCanvas
* canvas) {
6
SkPaint
p;
7
p.setAntiAlias(
true
);
8
SkPath
path;
9
path.moveTo(1.98009784, 9.0162744);
10
path.lineTo(47.843992, 10.1922744);
11
path.lineTo(47.804008, 11.7597256);
12
path.lineTo(1.93990216, 10.5837256);
13
canvas->
drawPath
(path, p);
14
}
15
}
// END FIDDLE
draw
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition
aaclip.cpp:27
SkCanvas
Definition
SkCanvas.h:106
SkCanvas::drawPath
void drawPath(const SkPath &path, const SkPaint &paint)
Definition
SkCanvas.cpp:2071
SkPaint
Definition
SkPaint.h:44
SkPath
Definition
SkPath.h:59
examples.h
REG_FIDDLE_SRGB
#define REG_FIDDLE_SRGB(NAME, W, H, T, I, DURATION, F16)
Definition
examples.h:52
Generated on Fri Apr 26 2024 06:15:32 for Flutter Engine by
1.9.8