Chromium Code Reviews| Index: experimental/svg/model/SkSVGAttributeParser.h |
| diff --git a/experimental/svg/model/SkSVGAttributeParser.h b/experimental/svg/model/SkSVGAttributeParser.h |
| index cd50479fee125ecf5a1a73b9ecdcaa0952ec25ad..1c318dc00c1fd138285df170593257e99ef6fe3a 100644 |
| --- a/experimental/svg/model/SkSVGAttributeParser.h |
| +++ b/experimental/svg/model/SkSVGAttributeParser.h |
| @@ -18,6 +18,7 @@ public: |
| bool parseNumber(SkSVGNumberType*); |
| bool parseLength(SkSVGLength*); |
| bool parseViewBox(SkSVGViewBoxType*); |
| + bool parseTransform(SkSVGTransformType*); |
| private: |
| // Stack-only |
| @@ -37,6 +38,19 @@ private: |
| bool parseNamedColorToken(SkColor*); |
| bool parseHexColorToken(SkColor*); |
| + // Transform helpers |
| + bool parseMatrixToken(SkMatrix*); |
| + bool parseTranslateToken(SkMatrix*); |
| + bool parseScaleToken(SkMatrix*); |
| + bool parseRotateToken(SkMatrix*); |
| + bool parseSkewXToken(SkMatrix*); |
| + bool parseSkewYToken(SkMatrix*); |
| + |
|
robertphillips
2016/08/08 17:48:47
sequece -> sequence ?
f(malita)
2016/08/08 17:53:15
Done.
|
| + // Parses a sequence of 'WS* <prefix> WS* (<nested>)', where the nested sequece |
| + // is handled by the passed functor. |
| + template <typename Func, typename T> |
| + bool parseParenthesized(const char* prefix, Func, T* result); |
| + |
| // The current position in the input string. |
| const char* fCurPos; |