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

Unified Diff: webrtc/tools/event_log_visualizer/plot_base.cc

Issue 2750583002: Pass label and plot style to the TimeSeries' constructor. (Closed)
Patch Set: Move implementation to cc file Created 3 years, 9 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
« no previous file with comments | « webrtc/tools/event_log_visualizer/plot_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/event_log_visualizer/plot_base.cc
diff --git a/webrtc/tools/event_log_visualizer/plot_base.cc b/webrtc/tools/event_log_visualizer/plot_base.cc
index f27fcd6b84ff2fe6412dbf03b4b35065a6d39bbb..baee3dfeee3cd0708bd8e490a791b0560802fa33 100644
--- a/webrtc/tools/event_log_visualizer/plot_base.cc
+++ b/webrtc/tools/event_log_visualizer/plot_base.cc
@@ -71,5 +71,15 @@ void Plot::SetTitle(std::string title) {
title_ = title;
}
+TimeSeries* Plot::AddTimeSeries(const char* label, PlotStyle style) {
+ series_list_.emplace_back(label, style);
+ return &series_list_.back();
+}
+
+TimeSeries* Plot::AddTimeSeries(const std::string& label, PlotStyle style) {
+ series_list_.emplace_back(label, style);
+ return &series_list_.back();
+}
+
} // namespace plotting
} // namespace webrtc
« no previous file with comments | « webrtc/tools/event_log_visualizer/plot_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698