From c8c176025c4fb610007c9705e37439c38b3aff5d Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Fri, 31 Mar 2017 18:53:05 -0400 Subject: [PATCH] switched skslc to_string strategy after repeated problems on Android BUG=skia: Change-Id: I9e27d06351e4bfcd503882b2c604878b44b6e5cc Reviewed-on: https://skia-review.googlesource.com/11015 Reviewed-by: Ethan Nicholas Commit-Queue: Ethan Nicholas --- src/sksl/SkSLString.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sksl/SkSLString.cpp b/src/sksl/SkSLString.cpp index 73d8a0addc..8e531ae0fb 100644 --- a/src/sksl/SkSLString.cpp +++ b/src/sksl/SkSLString.cpp @@ -8,9 +8,7 @@ #include "SkSLString.h" #include "SkSLUtil.h" -#include #include -#include #include #include #include @@ -117,11 +115,15 @@ String to_string(uint32_t value) { } String to_string(int64_t value) { - return SkSL::String::printf("%" PRId64, value); + std::stringstream buffer; + buffer << value; + return String(buffer.str().c_str()); } String to_string(uint64_t value) { - return SkSL::String::printf("%" PRIu64, value); + std::stringstream buffer; + buffer << value; + return String(buffer.str().c_str()); } String to_string(double value) {