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

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

Issue 2235273003: [SVGDom] <polygon> & <polyline> support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: GN build fix 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 SkSVGAttributeParser_DEFINED 8 #ifndef SkSVGAttributeParser_DEFINED
9 #define SkSVGAttributeParser_DEFINED 9 #define SkSVGAttributeParser_DEFINED
10 10
11 #include "SkSVGTypes.h" 11 #include "SkSVGTypes.h"
12 12
13 class SkSVGAttributeParser : public SkNoncopyable { 13 class SkSVGAttributeParser : public SkNoncopyable {
14 public: 14 public:
15 SkSVGAttributeParser(const char[]); 15 SkSVGAttributeParser(const char[]);
16 16
17 bool parseColor(SkSVGColorType*); 17 bool parseColor(SkSVGColorType*);
18 bool parseNumber(SkSVGNumberType*); 18 bool parseNumber(SkSVGNumberType*);
19 bool parseLength(SkSVGLength*); 19 bool parseLength(SkSVGLength*);
20 bool parseViewBox(SkSVGViewBoxType*); 20 bool parseViewBox(SkSVGViewBoxType*);
21 bool parseTransform(SkSVGTransformType*); 21 bool parseTransform(SkSVGTransformType*);
22 bool parsePaint(SkSVGPaint*); 22 bool parsePaint(SkSVGPaint*);
23 bool parseLineCap(SkSVGLineCap*); 23 bool parseLineCap(SkSVGLineCap*);
24 bool parseLineJoin(SkSVGLineJoin*); 24 bool parseLineJoin(SkSVGLineJoin*);
25 bool parsePoints(SkSVGPointsType*);
25 26
26 private: 27 private:
27 // Stack-only 28 // Stack-only
28 void* operator new(size_t) = delete; 29 void* operator new(size_t) = delete;
29 void* operator new(size_t, void*) = delete; 30 void* operator new(size_t, void*) = delete;
30 31
31 template <typename F> 32 template <typename F>
32 bool advanceWhile(F func); 33 bool advanceWhile(F func);
33 34
34 bool parseWSToken(); 35 bool parseWSToken();
(...skipping 19 matching lines...) Expand all
54 template <typename Func, typename T> 55 template <typename Func, typename T>
55 bool parseParenthesized(const char* prefix, Func, T* result); 56 bool parseParenthesized(const char* prefix, Func, T* result);
56 57
57 // The current position in the input string. 58 // The current position in the input string.
58 const char* fCurPos; 59 const char* fCurPos;
59 60
60 typedef SkNoncopyable INHERITED; 61 typedef SkNoncopyable INHERITED;
61 }; 62 };
62 63
63 #endif // SkSVGAttributeParser_DEFINED 64 #endif // SkSVGAttributeParser_DEFINED
OLDNEW
« no previous file with comments | « experimental/svg/model/SkSVGAttribute.h ('k') | experimental/svg/model/SkSVGAttributeParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698