Index: bench/benchmain.cpp |
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp |
index 9873c72fd6d38312005bb5c01f6d7a80a07496fa..87643137365db92a84c40bf46e10e584083c3aa9 100644 |
--- a/bench/benchmain.cpp |
+++ b/bench/benchmain.cpp |
@@ -30,6 +30,8 @@ class GrContext; |
#include "SkPicture.h" |
#include "SkString.h" |
+#include <limits> |
+ |
enum BenchMode { |
kNormal_BenchMode, |
kDeferred_BenchMode, |
@@ -549,7 +551,7 @@ int tool_main(int argc, char** argv) { |
BenchTimer timer; |
#endif |
- double previous = 1.0/0.0; |
+ double previous = std::numeric_limits<double>::infinity(); |
bool converged = false; |
bench->setLoops(0); |
if (FLAGS_verbose) { SkDebugf("%s %s: ", bench->getName(), config.name); } |