Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: experimental/svg/model/SkSVGAttribute.h

Issue 2327233003: [SVGDom] Initial linear gradient support (Closed)
Patch Set: review Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | experimental/svg/model/SkSVGAttributeParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | experimental/svg/model/SkSVGAttributeParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698