Index: src/effects/SkToFromValue.h |
diff --git a/src/effects/SkToFromValue.h b/src/effects/SkToFromValue.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ead4bd3fbf73b37718f4c8642d5817bee6c8478 |
--- /dev/null |
+++ b/src/effects/SkToFromValue.h |
@@ -0,0 +1,21 @@ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef SkToFromValue_DEFINED |
+#define SkToFromValue_DEFINED |
+ |
+#include "SkValue.h" |
+ |
+template <typename T> |
+SkValue SkToValue(const T&); |
+ |
+template <typename T> |
+SkValue SkToValue(const T*); |
+ |
+template <typename T> |
+bool SkFromValue(const SkValue&, T*); |
+ |
+#endif // SkToFromValue_DEFINED |