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

Unified Diff: cc/trees/latency_info_swap_promise_monitor.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/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/latency_info_swap_promise_monitor.cc
diff --git a/cc/trees/latency_info_swap_promise_monitor.cc b/cc/trees/latency_info_swap_promise_monitor.cc
index 9f2bc82fe1d6549820d2c69ee55bf6c9863c0236..23635cd856602edc16c79e355d03f350b9fd7136 100644
--- a/cc/trees/latency_info_swap_promise_monitor.cc
+++ b/cc/trees/latency_info_swap_promise_monitor.cc
@@ -4,6 +4,8 @@
#include "cc/trees/latency_info_swap_promise_monitor.h"
+#include <stdint.h>
+
#include "base/threading/platform_thread.h"
#include "cc/output/latency_info_swap_promise.h"
#include "cc/trees/layer_tree_host.h"
@@ -70,14 +72,14 @@ void LatencyInfoSwapPromiseMonitor::OnSetNeedsRedrawOnImpl() {
void LatencyInfoSwapPromiseMonitor::OnForwardScrollUpdateToMainThreadOnImpl() {
if (AddForwardingScrollUpdateToMainComponent(latency_)) {
- int64 new_sequence_number = 0;
+ int64_t new_sequence_number = 0;
for (ui::LatencyInfo::LatencyMap::const_iterator it =
latency_->latency_components().begin();
it != latency_->latency_components().end(); ++it) {
if (it->first.first == ui::INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT) {
new_sequence_number =
- ((static_cast<int64>(base::PlatformThread::CurrentId()) << 32) ^
- (reinterpret_cast<uint64>(this) << 32)) |
+ ((static_cast<int64_t>(base::PlatformThread::CurrentId()) << 32) ^
+ (reinterpret_cast<uint64_t>(this) << 32)) |
(it->second.sequence_number & 0xffffffff);
if (new_sequence_number == it->second.sequence_number)
return;
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698