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

Unified Diff: cc/debug/invalidation_benchmark.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/debug/invalidation_benchmark.h ('k') | cc/debug/lap_timer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/invalidation_benchmark.cc
diff --git a/cc/debug/invalidation_benchmark.cc b/cc/debug/invalidation_benchmark.cc
index 8a9fc883224829329f72d473a20fc6f708fd0892..0cd68cb8d9a20cc2f3c7ca9a8d810204cded108a 100644
--- a/cc/debug/invalidation_benchmark.cc
+++ b/cc/debug/invalidation_benchmark.cc
@@ -4,10 +4,11 @@
#include "cc/debug/invalidation_benchmark.h"
+#include <stdint.h>
+
#include <algorithm>
#include <limits>
-#include "base/basictypes.h"
#include "base/rand_util.h"
#include "base/values.h"
#include "cc/layers/layer.h"
@@ -126,10 +127,10 @@ bool InvalidationBenchmark::ProcessMessage(scoped_ptr<base::Value> value) {
// high quality, but they need to be identical in each run. Therefore, we use a
// LCG and keep the state locally in the benchmark.
float InvalidationBenchmark::LCGRandom() {
- const uint32 a = 1664525;
- const uint32 c = 1013904223;
+ const uint32_t a = 1664525;
+ const uint32_t c = 1013904223;
seed_ = a * seed_ + c;
- return static_cast<float>(seed_) / std::numeric_limits<uint32>::max();
+ return static_cast<float>(seed_) / std::numeric_limits<uint32_t>::max();
}
} // namespace cc
« no previous file with comments | « cc/debug/invalidation_benchmark.h ('k') | cc/debug/lap_timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698