OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
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 SkSVGAttribute_DEFINED | 8 #ifndef SkSVGAttribute_DEFINED |
9 #define SkSVGAttribute_DEFINED | 9 #define SkSVGAttribute_DEFINED |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 kRy, // <ellipse>,<rect>: vertical (corner) radius | 27 kRy, // <ellipse>,<rect>: vertical (corner) radius |
28 kStroke, | 28 kStroke, |
29 kStrokeOpacity, | 29 kStrokeOpacity, |
30 kStrokeLineCap, | 30 kStrokeLineCap, |
31 kStrokeLineJoin, | 31 kStrokeLineJoin, |
32 kStrokeWidth, | 32 kStrokeWidth, |
33 kTransform, | 33 kTransform, |
34 kViewBox, | 34 kViewBox, |
35 kWidth, | 35 kWidth, |
36 kX, | 36 kX, |
| 37 kX1, // <line>: first endpoint x |
| 38 kX2, // <line>: second endpoint x |
37 kY, | 39 kY, |
| 40 kY1, // <line>: first endpoint y |
| 41 kY2, // <line>: second endpoint y |
38 | 42 |
39 kUnknown, | 43 kUnknown, |
40 }; | 44 }; |
41 | 45 |
42 struct SkSVGPresentationAttributes { | 46 struct SkSVGPresentationAttributes { |
43 static SkSVGPresentationAttributes MakeInitial(); | 47 static SkSVGPresentationAttributes MakeInitial(); |
44 | 48 |
45 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea
d. | 49 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea
d. |
46 | 50 |
47 SkTLazy<SkSVGPaint> fFill; | 51 SkTLazy<SkSVGPaint> fFill; |
48 SkTLazy<SkSVGNumberType> fFillOpacity; | 52 SkTLazy<SkSVGNumberType> fFillOpacity; |
49 | 53 |
50 SkTLazy<SkSVGPaint> fStroke; | 54 SkTLazy<SkSVGPaint> fStroke; |
51 SkTLazy<SkSVGLineCap> fStrokeLineCap; | 55 SkTLazy<SkSVGLineCap> fStrokeLineCap; |
52 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; | 56 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; |
53 SkTLazy<SkSVGNumberType> fStrokeOpacity; | 57 SkTLazy<SkSVGNumberType> fStrokeOpacity; |
54 SkTLazy<SkSVGLength> fStrokeWidth; | 58 SkTLazy<SkSVGLength> fStrokeWidth; |
55 | 59 |
56 SkTLazy<SkSVGNumberType> fOpacity; | 60 SkTLazy<SkSVGNumberType> fOpacity; |
57 }; | 61 }; |
58 | 62 |
59 #endif // SkSVGAttribute_DEFINED | 63 #endif // SkSVGAttribute_DEFINED |
OLD | NEW |