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

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: 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
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 13 matching lines...) Expand all
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
OLDNEW
« BUILD.gn ('K') | « BUILD.gn ('k') | experimental/svg/model/SkSVGDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698