Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkPathMeasurePriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 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#ifndef SkPathMeasurePriv_DEFINED
9#define SkPathMeasurePriv_DEFINED
10
11#include "include/core/SkPath.h"
13#include "src/core/SkGeometry.h"
14
15// Used in the Segment struct defined in SkPathMeasure.h
16// It is used as a 2-bit field so if you add to this
17// you must increase the size of the bitfield there.
24
25
26void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType,
27 SkScalar startT, SkScalar stopT, SkPath* dst);
28
29// for testing
30
31class SkPathMeasure;
32
34public:
35 static size_t CountSegments(const SkPathMeasure&);
36};
37
38#endif // SkPathMeasurePriv_DEFINED
@ kConic_SegType
@ kCubic_SegType
@ kLine_SegType
@ kQuad_SegType
void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType, SkScalar startT, SkScalar stopT, SkPath *dst)
static size_t CountSegments(const SkPathMeasure &)
float SkScalar
Definition extension.cpp:12