OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkStroke_DEFINED | 8 #ifndef SkStroke_DEFINED |
9 #define SkStroke_DEFINED | 9 #define SkStroke_DEFINED |
10 | 10 |
11 #include "SkPath.h" | 11 #include "SkPath.h" |
12 #include "SkPoint.h" | 12 #include "SkPoint.h" |
13 #include "SkPaint.h" | 13 #include "SkPaint.h" |
14 #include "SkStrokerPriv.h" | 14 #include "SkStrokerPriv.h" |
15 | 15 |
16 #if !defined SK_LEGACY_STROKE_CURVES && defined SK_DEBUG | 16 #ifdef SK_DEBUG |
17 extern bool gDebugStrokerErrorSet; | 17 extern bool gDebugStrokerErrorSet; |
18 extern SkScalar gDebugStrokerError; | 18 extern SkScalar gDebugStrokerError; |
19 extern int gMaxRecursion[]; | 19 extern int gMaxRecursion[]; |
20 #endif | 20 #endif |
21 | 21 |
22 /** \class SkStroke | 22 /** \class SkStroke |
23 SkStroke is the utility class that constructs paths by stroking | 23 SkStroke is the utility class that constructs paths by stroking |
24 geometries (lines, rects, ovals, roundrects, paths). This is | 24 geometries (lines, rects, ovals, roundrects, paths). This is |
25 invoked when a geometry or text is drawn in a canvas with the | 25 invoked when a geometry or text is drawn in a canvas with the |
26 kStroke_Mask bit set in the paint. | 26 kStroke_Mask bit set in the paint. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 private: | 69 private: |
70 SkScalar fWidth, fMiterLimit; | 70 SkScalar fWidth, fMiterLimit; |
71 SkScalar fResScale; | 71 SkScalar fResScale; |
72 uint8_t fCap, fJoin; | 72 uint8_t fCap, fJoin; |
73 SkBool8 fDoFill; | 73 SkBool8 fDoFill; |
74 | 74 |
75 friend class SkPaint; | 75 friend class SkPaint; |
76 }; | 76 }; |
77 | 77 |
78 #endif | 78 #endif |
OLD | NEW |