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

Unified Diff: ui/events/latency_info.cc

Issue 2317253005: SourceEventType added to LatencyInfo (Closed)
Patch Set: Changed the patch to only contain source event type plumbing. 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/latency_info.h ('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..a1e2b2aece8f090263e24a4e97fe85f2cf7f9a1a 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -142,7 +142,15 @@ LatencyInfo::LatencyInfo()
: input_coordinates_size_(0),
trace_id_(-1),
coalesced_(false),
- terminated_(false) {}
+ terminated_(false),
+ source_event_type_(SourceEventType::UNKOWN) {}
tdresser 2016/09/12 14:23:08 Use a delegated constructor here. (https://www.ib
sahel 2016/09/12 17:02:26 Done.
+
+LatencyInfo::LatencyInfo(SourceEventType type)
+ : input_coordinates_size_(0),
+ trace_id_(-1),
+ coalesced_(false),
+ terminated_(false),
+ source_event_type_(type) {}
LatencyInfo::LatencyInfo(const LatencyInfo& other) = default;
@@ -151,7 +159,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::UNKOWN) {}
bool LatencyInfo::Verify(const std::vector<LatencyInfo>& latency_info,
const char* referring_msg) {
« ui/events/latency_info.h ('K') | « ui/events/latency_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698