Offset IceCandidatePairEventType enum in event log visualizer

Bug: NONE
Change-Id: I17b586702d02a49917e707788caf091955c9357c
Reviewed-on: https://webrtc-review.googlesource.com/c/112723
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Zach Stein <zstein@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25896}
This commit is contained in:
Zach Stein
2018-12-03 14:35:59 -08:00
committed by Commit Bot
parent 5546aef682
commit 6353fbc237

View File

@ -1961,7 +1961,9 @@ void EventLogAnalyzer::CreateIceConnectivityCheckGraph(Plot* plot) {
LineStyle::kNone, PointStyle::kHighlight);
}
float x = ToCallTimeSec(event.log_time_us());
float y = static_cast<float>(event.type);
constexpr int kIceCandidatePairEventTypeOffset =
static_cast<int>(IceCandidatePairConfigType::kNumValues);
float y = static_cast<float>(event.type) + kIceCandidatePairEventTypeOffset;
checks_by_cp_id[event.candidate_pair_id].points.emplace_back(x, y);
}