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