Index: webrtc/tools/event_log_visualizer/plot_protobuf.h |
diff --git a/webrtc/tools/event_log_visualizer/plot_python.h b/webrtc/tools/event_log_visualizer/plot_protobuf.h |
similarity index 54% |
copy from webrtc/tools/event_log_visualizer/plot_python.h |
copy to webrtc/tools/event_log_visualizer/plot_protobuf.h |
index 2bf445a43e7c278bc77630ee522588d202fd1584..1ea525b20af06099dfa6902324f93304ba6c6136 100644 |
--- a/webrtc/tools/event_log_visualizer/plot_python.h |
+++ b/webrtc/tools/event_log_visualizer/plot_protobuf.h |
@@ -7,30 +7,33 @@ |
* in the file PATENTS. All contributing project authors may |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ |
-#define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ |
+#ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |
+#define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |
+#include "webrtc/tools/event_log_visualizer/graph.pb.h" |
#include "webrtc/tools/event_log_visualizer/plot_base.h" |
namespace webrtc { |
namespace plotting { |
-class PythonPlot final : public Plot { |
+class ProtobufPlot final : public Plot { |
public: |
- PythonPlot(); |
- ~PythonPlot() override; |
+ ProtobufPlot(); |
+ ~ProtobufPlot() override; |
void Draw() override; |
+ void ExportProtobuf(protobuf_plot::Plot* plot); |
}; |
-class PythonPlotCollection final : public PlotCollection { |
+class ProtobufPlotCollection final : public PlotCollection { |
public: |
- PythonPlotCollection(); |
- ~PythonPlotCollection() override; |
+ ProtobufPlotCollection(); |
+ ~ProtobufPlotCollection() override; |
void Draw() override; |
Plot* AppendNewPlot() override; |
+ void ExportProtobuf(protobuf_plot::PlotCollection* collection); |
}; |
} // namespace plotting |
} // namespace webrtc |
-#endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ |
+#endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |