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

Unified Diff: experimental/svg/model/SkSVGValue.h

Issue 2202053002: [SVGDom/experimental] Initial SVGLength support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: review 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/svg/model/SkSVGTypes.h ('k') | experimental/svg/model/SkSVGValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/svg/model/SkSVGValue.h
diff --git a/experimental/svg/model/SkSVGValue.h b/experimental/svg/model/SkSVGValue.h
index 3d3cd6efc1d723a5273ab031fe140cb83b965508..a83c4fe07fa926b988774a393889ca1684eed5de 100644
--- a/experimental/svg/model/SkSVGValue.h
+++ b/experimental/svg/model/SkSVGValue.h
@@ -11,14 +11,16 @@
#include "SkColor.h"
#include "SkMatrix.h"
#include "SkPath.h"
+#include "SkSVGTypes.h"
#include "SkTypes.h"
class SkSVGValue : public SkNoncopyable {
public:
enum class Type {
- Color,
- Path,
- Transform,
+ kColor,
+ kLength,
+ kPath,
+ kTransform,
};
Type type() const { return fType; }
@@ -33,6 +35,8 @@ protected:
private:
Type fType;
+
+ typedef SkNoncopyable INHERITED;
};
template <typename SkiaType, SkSVGValue::Type ValueType>
@@ -49,11 +53,12 @@ public:
private:
SkiaType fWrappedValue;
- using INHERITED = SkSVGValue;
+ typedef SkSVGValue INHERITED;
};
-using SkSVGColorValue = SkSVGWrapperValue<SkColor , SkSVGValue::Type::Color >;
-using SkSVGPathValue = SkSVGWrapperValue<SkPath , SkSVGValue::Type::Path >;
-using SkSVGTransformValue = SkSVGWrapperValue<SkMatrix, SkSVGValue::Type::Transform>;
+using SkSVGColorValue = SkSVGWrapperValue<SkSVGColor , SkSVGValue::Type::kColor >;
+using SkSVGLengthValue = SkSVGWrapperValue<SkSVGLength, SkSVGValue::Type::kLength >;
+using SkSVGPathValue = SkSVGWrapperValue<SkPath , SkSVGValue::Type::kPath >;
+using SkSVGTransformValue = SkSVGWrapperValue<SkMatrix , SkSVGValue::Type::kTransform>;
#endif // SkSVGValue_DEFINED
« no previous file with comments | « experimental/svg/model/SkSVGTypes.h ('k') | experimental/svg/model/SkSVGValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698