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

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

Issue 2246943002: [SVGDom] Add opacity support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: pic/serialize blacklist 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 | « no previous file | 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
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 kD, 17 kD,
18 kFill, 18 kFill,
19 kFillOpacity, 19 kFillOpacity,
20 kHeight, 20 kHeight,
21 kOpacity,
21 kPoints, 22 kPoints,
22 kRx, 23 kRx,
23 kRy, 24 kRy,
24 kStroke, 25 kStroke,
25 kStrokeOpacity, 26 kStrokeOpacity,
26 kStrokeLineCap, 27 kStrokeLineCap,
27 kStrokeLineJoin, 28 kStrokeLineJoin,
28 kStrokeWidth, 29 kStrokeWidth,
29 kTransform, 30 kTransform,
30 kViewBox, 31 kViewBox,
(...skipping 10 matching lines...) Expand all
41 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea d. 42 // TODO: SkTLazy adds an extra ptr per attribute; refactor to reduce overhea d.
42 43
43 SkTLazy<SkSVGPaint> fFill; 44 SkTLazy<SkSVGPaint> fFill;
44 SkTLazy<SkSVGNumberType> fFillOpacity; 45 SkTLazy<SkSVGNumberType> fFillOpacity;
45 46
46 SkTLazy<SkSVGPaint> fStroke; 47 SkTLazy<SkSVGPaint> fStroke;
47 SkTLazy<SkSVGLineCap> fStrokeLineCap; 48 SkTLazy<SkSVGLineCap> fStrokeLineCap;
48 SkTLazy<SkSVGLineJoin> fStrokeLineJoin; 49 SkTLazy<SkSVGLineJoin> fStrokeLineJoin;
49 SkTLazy<SkSVGNumberType> fStrokeOpacity; 50 SkTLazy<SkSVGNumberType> fStrokeOpacity;
50 SkTLazy<SkSVGLength> fStrokeWidth; 51 SkTLazy<SkSVGLength> fStrokeWidth;
52
53 SkTLazy<SkSVGNumberType> fOpacity;
51 }; 54 };
52 55
53 #endif // SkSVGAttribute_DEFINED 56 #endif // SkSVGAttribute_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/svg/model/SkSVGDOM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698