Chromium Code Reviews| Index: src/core/SkPathMeasurePriv.h |
| diff --git a/src/core/SkPathMeasurePriv.h b/src/core/SkPathMeasurePriv.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..55d6a18a9370561f8713b281388144f68f6ce30e |
| --- /dev/null |
| +++ b/src/core/SkPathMeasurePriv.h |
| @@ -0,0 +1,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 addSegmentToPath(const SkPoint pts[], unsigned segType, |
|
reed1
2016/08/09 14:07:28
Lets guard the name more: e.g. SkPathMeasure_addSe
|
| + SkScalar startT, SkScalar stopT, SkPath* dst); |
| + |
| +#endif // SkPathMeasurePriv_DEFINED |