| 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 kCx, // <circle>,<ellipse>: center x position | 17 kCx, // <circle>,<ellipse>: center x position |
| 18 kCy, // <circle>,<ellipse>: center y position | 18 kCy, // <circle>,<ellipse>: center y position |
| 19 kD, | 19 kD, |
| 20 kFill, | 20 kFill, |
| 21 kFillOpacity, | 21 kFillOpacity, |
| 22 kHeight, | 22 kHeight, |
| 23 kHref, |
| 24 kOffset, |
| 23 kOpacity, | 25 kOpacity, |
| 24 kPoints, | 26 kPoints, |
| 25 kR, // <circle>: radius | 27 kR, // <circle>: radius |
| 26 kRx, // <ellipse>,<rect>: horizontal (corner) radius | 28 kRx, // <ellipse>,<rect>: horizontal (corner) radius |
| 27 kRy, // <ellipse>,<rect>: vertical (corner) radius | 29 kRy, // <ellipse>,<rect>: vertical (corner) radius |
| 30 kStopColor, |
| 31 kStopOpacity, |
| 28 kStroke, | 32 kStroke, |
| 29 kStrokeOpacity, | 33 kStrokeOpacity, |
| 30 kStrokeLineCap, | 34 kStrokeLineCap, |
| 31 kStrokeLineJoin, | 35 kStrokeLineJoin, |
| 32 kStrokeWidth, | 36 kStrokeWidth, |
| 33 kTransform, | 37 kTransform, |
| 34 kViewBox, | 38 kViewBox, |
| 35 kWidth, | 39 kWidth, |
| 36 kX, | 40 kX, |
| 37 kX1, // <line>: first endpoint x | 41 kX1, // <line>: first endpoint x |
| (...skipping 16 matching lines...) Expand all Loading... |
| 54 SkTLazy<SkSVGPaint> fStroke; | 58 SkTLazy<SkSVGPaint> fStroke; |
| 55 SkTLazy<SkSVGLineCap> fStrokeLineCap; | 59 SkTLazy<SkSVGLineCap> fStrokeLineCap; |
| 56 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; | 60 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; |
| 57 SkTLazy<SkSVGNumberType> fStrokeOpacity; | 61 SkTLazy<SkSVGNumberType> fStrokeOpacity; |
| 58 SkTLazy<SkSVGLength> fStrokeWidth; | 62 SkTLazy<SkSVGLength> fStrokeWidth; |
| 59 | 63 |
| 60 SkTLazy<SkSVGNumberType> fOpacity; | 64 SkTLazy<SkSVGNumberType> fOpacity; |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 #endif // SkSVGAttribute_DEFINED | 67 #endif // SkSVGAttribute_DEFINED |
| OLD | NEW |