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

Unified Diff: tools/using_skia_and_harfbuzz.cpp

Issue 1977503002: using_skia_and_harfbuzz: compile w/ Android NDK (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-05-12 (Thursday) 11:52:20 EDT Created 4 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/using_skia_and_harfbuzz.cpp
diff --git a/tools/using_skia_and_harfbuzz.cpp b/tools/using_skia_and_harfbuzz.cpp
index 413939d15b7f35ab89d65cfd0ec817c1bacffc72..f72d71e07ece5bbb4b75c806d1b7be0fc0f095d2 100644
--- a/tools/using_skia_and_harfbuzz.cpp
+++ b/tools/using_skia_and_harfbuzz.cpp
@@ -9,9 +9,11 @@
// produce a PDF file from UTF-8 text in stdin.
#include <cassert>
+#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
+#include <sstream>
#include <hb-ot.h>
@@ -46,7 +48,9 @@ struct DoubleOption : Option<double> {
value = atof(_value.c_str());
}
virtual std::string valueToString() {
- return std::to_string(value);
+ std::ostringstream stm;
+ stm << value;
+ return stm.str();
}
DoubleOption(std::string selector, std::string description, double defaultValue) :
Option<double>(selector, description, defaultValue) {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698