aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPathMeasurePriv.h
blob: 8dcf717bad7ce1bdebd66c44ee6604094e5cafc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkPathMeasurePriv_DEFINED
#define SkPathMeasurePriv_DEFINED

#include "SkPath.h"
#include "SkPoint.h"
#include "SkGeometry.h"

// Used in the Segment struct defined in SkPathMeasure.h
// It is used as a 2-bit field so if you add to this
// you must increase the size of the bitfield there.
enum SkSegType {
    kLine_SegType,
    kQuad_SegType,
    kCubic_SegType,
    kConic_SegType,
};


void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType,
                   SkScalar startT, SkScalar stopT, SkPath* dst);

#endif  // SkPathMeasurePriv_DEFINED