| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 10 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 
| 11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 
| 12 | 12 | 
| 13 #include <memory> | 13 #include <memory> | 
| 14 #include <string> | 14 #include <string> | 
| 15 #include <utility> | 15 #include <utility> | 
| 16 #include <vector> | 16 #include <vector> | 
| 17 | 17 | 
| 18 namespace webrtc { | 18 namespace webrtc { | 
| 19 namespace plotting { | 19 namespace plotting { | 
| 20 | 20 | 
| 21 enum PlotStyle { LINE_GRAPH, LINE_DOT_GRAPH, BAR_GRAPH, LINE_STEP_GRAPH }; | 21 enum PlotStyle { | 
|  | 22   LINE_GRAPH, | 
|  | 23   LINE_DOT_GRAPH, | 
|  | 24   BAR_GRAPH, | 
|  | 25   LINE_STEP_GRAPH, | 
|  | 26   DOT_GRAPH | 
|  | 27 }; | 
| 22 | 28 | 
| 23 struct TimeSeriesPoint { | 29 struct TimeSeriesPoint { | 
| 24   TimeSeriesPoint(float x, float y) : x(x), y(y) {} | 30   TimeSeriesPoint(float x, float y) : x(x), y(y) {} | 
| 25   float x; | 31   float x; | 
| 26   float y; | 32   float y; | 
| 27 }; | 33 }; | 
| 28 | 34 | 
| 29 struct TimeSeries { | 35 struct TimeSeries { | 
| 30   TimeSeries() = default; | 36   TimeSeries() = default; | 
| 31   TimeSeries(const char* label, PlotStyle style) | 37   TimeSeries(const char* label, PlotStyle style) | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 124   virtual Plot* AppendNewPlot() = 0; | 130   virtual Plot* AppendNewPlot() = 0; | 
| 125 | 131 | 
| 126  protected: | 132  protected: | 
| 127   std::vector<std::unique_ptr<Plot> > plots_; | 133   std::vector<std::unique_ptr<Plot> > plots_; | 
| 128 }; | 134 }; | 
| 129 | 135 | 
| 130 }  // namespace plotting | 136 }  // namespace plotting | 
| 131 }  // namespace webrtc | 137 }  // namespace webrtc | 
| 132 | 138 | 
| 133 #endif  // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 139 #endif  // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 
| OLD | NEW | 
|---|