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 |
11 #include "SkSVGTypes.h" | 11 #include "SkSVGTypes.h" |
12 #include "SkTLazy.h" | 12 #include "SkTLazy.h" |
13 | 13 |
14 class SkSVGRenderContext; | 14 class SkSVGRenderContext; |
15 | 15 |
16 enum class SkSVGAttribute { | 16 enum class SkSVGAttribute { |
17 kD, | 17 kD, |
18 kFill, | 18 kFill, |
19 kFillOpacity, | 19 kFillOpacity, |
20 kHeight, | 20 kHeight, |
| 21 kOpacity, |
21 kPoints, | 22 kPoints, |
22 kRx, | 23 kRx, |
23 kRy, | 24 kRy, |
24 kStroke, | 25 kStroke, |
25 kStrokeOpacity, | 26 kStrokeOpacity, |
26 kStrokeLineCap, | 27 kStrokeLineCap, |
27 kStrokeLineJoin, | 28 kStrokeLineJoin, |
28 kStrokeWidth, | 29 kStrokeWidth, |
29 kTransform, | 30 kTransform, |
30 kViewBox, | 31 kViewBox, |
(...skipping 10 matching lines...) Expand all Loading... |
41 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea
d. | 42 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea
d. |
42 | 43 |
43 SkTLazy<SkSVGPaint> fFill; | 44 SkTLazy<SkSVGPaint> fFill; |
44 SkTLazy<SkSVGNumberType> fFillOpacity; | 45 SkTLazy<SkSVGNumberType> fFillOpacity; |
45 | 46 |
46 SkTLazy<SkSVGPaint> fStroke; | 47 SkTLazy<SkSVGPaint> fStroke; |
47 SkTLazy<SkSVGLineCap> fStrokeLineCap; | 48 SkTLazy<SkSVGLineCap> fStrokeLineCap; |
48 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; | 49 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; |
49 SkTLazy<SkSVGNumberType> fStrokeOpacity; | 50 SkTLazy<SkSVGNumberType> fStrokeOpacity; |
50 SkTLazy<SkSVGLength> fStrokeWidth; | 51 SkTLazy<SkSVGLength> fStrokeWidth; |
| 52 |
| 53 SkTLazy<SkSVGNumberType> fOpacity; |
51 }; | 54 }; |
52 | 55 |
53 #endif // SkSVGAttribute_DEFINED | 56 #endif // SkSVGAttribute_DEFINED |
OLD | NEW |