Flutter Engine
The Flutter Engine
SkStrokerPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 The Android Open Source Project
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
9#ifndef SkStrokerPriv_DEFINED
10#define SkStrokerPriv_DEFINED
11
15
16class SkPath;
17
18#define CWX(x, y) (-y)
19#define CWY(x, y) (x)
20#define CCWX(x, y) (y)
21#define CCWY(x, y) (-x)
22
23#define CUBIC_ARC_FACTOR ((SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3)
24
25// this enables a global which is not thread-safe; doing so triggers a TSAN error in Chrome tests.
26#define QUAD_STROKE_APPROX_EXTENDED_DEBUGGING 0 // set to 1 to enable debugging in StrokerTest.cpp
27
29public:
30 typedef void (*CapProc)(SkPath* path,
31 const SkPoint& pivot,
32 const SkVector& normal,
33 const SkPoint& stop,
34 SkPath* otherPath);
35
36 typedef void (*JoinProc)(SkPath* outer, SkPath* inner,
37 const SkVector& beforeUnitNormal,
38 const SkPoint& pivot,
39 const SkVector& afterUnitNormal,
40 SkScalar radius, SkScalar invMiterLimit,
41 bool prevIsLine, bool currIsLine);
42
45};
46
47#endif
Definition: SkPath.h:59
void(* JoinProc)(SkPath *outer, SkPath *inner, const SkVector &beforeUnitNormal, const SkPoint &pivot, const SkVector &afterUnitNormal, SkScalar radius, SkScalar invMiterLimit, bool prevIsLine, bool currIsLine)
Definition: SkStrokerPriv.h:36
static CapProc CapFactory(SkPaint::Cap)
static JoinProc JoinFactory(SkPaint::Join)
void(* CapProc)(SkPath *path, const SkPoint &pivot, const SkVector &normal, const SkPoint &stop, SkPath *otherPath)
Definition: SkStrokerPriv.h:30
float SkScalar
Definition: extension.cpp:12
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