aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/SkSLUtil.h
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-09-30 06:23:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-30 06:23:25 -0700
commitf008b0a59f45c0d4bea3e66faf3b01805009ec89 (patch)
tree57b3cfb21b1e83552935ceb606b9102febb64333 /src/sksl/SkSLUtil.h
parented38772630744edd1999f4ef8ea96fe0c7c45f6d (diff)
Turned on SkSL->GLSL compiler
Diffstat (limited to 'src/sksl/SkSLUtil.h')
-rw-r--r--src/sksl/SkSLUtil.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/sksl/SkSLUtil.h b/src/sksl/SkSLUtil.h
index 33611cde02..efffaaec01 100644
--- a/src/sksl/SkSLUtil.h
+++ b/src/sksl/SkSLUtil.h
@@ -19,11 +19,15 @@ namespace SkSL {
// our own definitions of certain std:: functions, because they are not always present on Android
-template <typename T> std::string to_string(T value) {
- std::stringstream buffer;
- buffer << std::setprecision(std::numeric_limits<T>::digits10) << value;
- return buffer.str();
-}
+std::string to_string(double value);
+
+std::string to_string(int32_t value);
+
+std::string to_string(uint32_t value);
+
+std::string to_string(int64_t value);
+
+std::string to_string(uint64_t value);
#if _MSC_VER
#define NORETURN __declspec(noreturn)