| 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, BAR_GRAPH }; | 21 enum PlotStyle { LINE_GRAPH, LINE_DOT_GRAPH, BAR_GRAPH }; |
| 22 | 22 |
| 23 struct TimeSeriesPoint { | 23 struct TimeSeriesPoint { |
| 24 TimeSeriesPoint(float x, float y) : x(x), y(y) {} | 24 TimeSeriesPoint(float x, float y) : x(x), y(y) {} |
| 25 float x; | 25 float x; |
| 26 float y; | 26 float y; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 struct TimeSeries { | 29 struct TimeSeries { |
| 30 TimeSeries() = default; | 30 TimeSeries() = default; |
| 31 TimeSeries(TimeSeries&& other) | 31 TimeSeries(TimeSeries&& other) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual Plot* append_new_plot() = 0; | 69 virtual Plot* append_new_plot() = 0; |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 std::vector<std::unique_ptr<Plot> > plots; | 72 std::vector<std::unique_ptr<Plot> > plots; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace plotting | 75 } // namespace plotting |
| 76 } // namespace webrtc | 76 } // namespace webrtc |
| 77 | 77 |
| 78 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 78 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ |
| OLD | NEW |