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

Unified Diff: bench/benchmain.cpp

Issue 23526045: OK windows, please take my infinity. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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: 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); }
« 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