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

Unified Diff: ui/events/latency_info.cc

Issue 2317253005: SourceEventType added to LatencyInfo (Closed)
Patch Set: Added a fake return to the end of EventTypeToLatencySourceEventType, for compilers that don't know … Created 4 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
« ui/events/event.cc ('K') | « ui/events/latency_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.cc
diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc
index 76a3e2e299f1a5565ff8a9bff032925ab96ffd5a..4ef3d9c6fb1e3ae53118085b6dd9517d9a1e7cbf 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -138,11 +138,14 @@ static base::LazyInstance<LatencyInfoEnabledInitializer>::Leaky
namespace ui {
-LatencyInfo::LatencyInfo()
+LatencyInfo::LatencyInfo() : LatencyInfo(SourceEventType::UNKNOWN) {}
+
+LatencyInfo::LatencyInfo(SourceEventType type)
: input_coordinates_size_(0),
trace_id_(-1),
coalesced_(false),
- terminated_(false) {}
+ terminated_(false),
+ source_event_type_(type) {}
LatencyInfo::LatencyInfo(const LatencyInfo& other) = default;
@@ -151,7 +154,8 @@ LatencyInfo::~LatencyInfo() {}
LatencyInfo::LatencyInfo(int64_t trace_id, bool terminated)
: input_coordinates_size_(0),
trace_id_(trace_id),
- terminated_(terminated) {}
+ terminated_(terminated),
+ source_event_type_(SourceEventType::UNKNOWN) {}
bool LatencyInfo::Verify(const std::vector<LatencyInfo>& latency_info,
const char* referring_msg) {
« ui/events/event.cc ('K') | « ui/events/latency_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698