Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: src/core/SkPathMeasurePriv.h

Issue 2221203002: Move seg_to to a new header, define SkSegType enum there (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename addSegmentToPath to SkPathMeasure_segTo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPathMeasure.cpp ('k') | src/utils/SkCurveMeasure.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 "SkPath.h"
12 #include "SkPoint.h"
13 #include "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.
18 enum SkSegType {
19 kLine_SegType,
20 kQuad_SegType,
21 kCubic_SegType,
22 kConic_SegType,
23 };
24
25
26 void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType,
27 SkScalar startT, SkScalar stopT, SkPath* dst);
28
29 #endif // SkPathMeasurePriv_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPathMeasure.cpp ('k') | src/utils/SkCurveMeasure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698