diff options
author | hstern <hstern@google.com> | 2016-08-09 09:38:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-09 09:38:30 -0700 |
commit | 23d97760248300b7aec213a36f8b0485857240b5 (patch) | |
tree | ee288c1dcdef2777f1a5f0a07b66e6bb31f3c61b /src/core/SkPathMeasurePriv.h | |
parent | 904527d165ce98c9fbaa9c05d3890070e3132170 (diff) |
Move seg_to to a new header, define SkSegType enum there
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221203002
Review-Url: https://codereview.chromium.org/2221203002
Diffstat (limited to 'src/core/SkPathMeasurePriv.h')
-rw-r--r-- | src/core/SkPathMeasurePriv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/SkPathMeasurePriv.h b/src/core/SkPathMeasurePriv.h new file mode 100644 index 0000000000..8dcf717bad --- /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 SkPathMeasure_segTo(const SkPoint pts[], unsigned segType, + SkScalar startT, SkScalar stopT, SkPath* dst); + +#endif // SkPathMeasurePriv_DEFINED |