Flutter Engine
The Flutter Engine
massive_coordinates_svg.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.
4REG_FIDDLE(massive_coordinates_svg, 800, 600, false, 0) {
5void draw(SkCanvas* canvas) {
7 paint.setAntiAlias(true);
8
9 SkRect r = {0, 0, 800, 590};
10 paint.setColor(SK_ColorGREEN);
11 canvas->drawRect(r, paint);
12
13 canvas->clipRect(r);
14
15 paint.setColor(SK_ColorBLACK);
16
18 paint.setStrokeWidth(1);
20 path.moveTo(-1000, 12345678901234567890.f);
21 path.lineTo(200, 200);
22 canvas->drawPath(path, paint);
23
24 path.reset();
25 path.moveTo(600, 400);
26 path.lineTo(1000, -9.8765432109876543210e+19f);
27 canvas->drawPath(path, paint);
28}
29} // END FIDDLE
constexpr SkColor SK_ColorBLACK
Definition: SkColor.h:103
constexpr SkColor SK_ColorGREEN
Definition: SkColor.h:131
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawRect(const SkRect &rect, const SkPaint &paint)
Definition: SkCanvas.cpp:1673
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
Definition: SkCanvas.cpp:1361
void drawPath(const SkPath &path, const SkPaint &paint)
Definition: SkCanvas.cpp:1747
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
Definition: SkPath.h:59
const Paint & paint
Definition: color_source.cc:38
REG_FIDDLE(massive_coordinates_svg, 800, 600, false, 0)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57