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

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

Issue 2244223005: [SVGDom] Add <line> support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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/SkSVGDOM.cpp » ('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
(...skipping 16 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | experimental/svg/model/SkSVGDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698