aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkToFromValue.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-01-21 14:15:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-21 14:15:10 -0800
commit27a6e86fb17fce7ce962b9080eae36926e87d568 (patch)
treedd71c19559185f2fbc00485ab6a00e0b9bab4cad /src/effects/SkToFromValue.h
parentae47418936933c9dd7f4be93fab7c3a42d7a7bd9 (diff)
SkValue: SkXfermode
Implement: template<> SkValue SkToValue<SkXfermode>(const SkXfermode*); template<> bool SkFromValue<SkXfermode*>(const SkValue&, SkXfermode**); GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1585813004 NOTRY=true Review URL: https://codereview.chromium.org/1585813004
Diffstat (limited to 'src/effects/SkToFromValue.h')
-rw-r--r--src/effects/SkToFromValue.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/effects/SkToFromValue.h b/src/effects/SkToFromValue.h
new file mode 100644
index 0000000000..1ead4bd3fb
--- /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