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

Side by Side Diff: webrtc/tools/event_log_visualizer/plot_protobuf.h

Issue 2268063002: Define a protobuf format for representing plots (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add plot_protobuf.* to source list for visualization tool. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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_PYTHON_H_ 10 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ 11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
12 12
13 #include "webrtc/tools/event_log_visualizer/graph.pb.h"
13 #include "webrtc/tools/event_log_visualizer/plot_base.h" 14 #include "webrtc/tools/event_log_visualizer/plot_base.h"
14 15
15 namespace webrtc { 16 namespace webrtc {
16 namespace plotting { 17 namespace plotting {
17 18
18 class PythonPlot final : public Plot { 19 class ProtobufPlot final : public Plot {
19 public: 20 public:
20 PythonPlot(); 21 ProtobufPlot();
21 ~PythonPlot() override; 22 ~ProtobufPlot() override;
22 void Draw() override; 23 void Draw() override;
24 void ExportProtobuf(protobuf_plot::Plot* plot);
23 }; 25 };
24 26
25 class PythonPlotCollection final : public PlotCollection { 27 class ProtobufPlotCollection final : public PlotCollection {
26 public: 28 public:
27 PythonPlotCollection(); 29 ProtobufPlotCollection();
28 ~PythonPlotCollection() override; 30 ~ProtobufPlotCollection() override;
29 void Draw() override; 31 void Draw() override;
30 Plot* AppendNewPlot() override; 32 Plot* AppendNewPlot() override;
33 void ExportProtobuf(protobuf_plot::PlotCollection* collection);
31 }; 34 };
32 35
33 } // namespace plotting 36 } // namespace plotting
34 } // namespace webrtc 37 } // namespace webrtc
35 38
36 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_ 39 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698