2016-08-23 18:15:25 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
2019-07-25 13:57:41 +02:00
|
|
|
#ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
|
|
|
|
|
#define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
|
2016-08-23 18:15:25 -07:00
|
|
|
|
2021-02-22 12:43:39 +01:00
|
|
|
#include "absl/base/attributes.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "rtc_base/ignore_wundef.h"
|
2016-09-28 17:42:01 -07:00
|
|
|
RTC_PUSH_IGNORING_WUNDEF()
|
2019-07-25 13:57:41 +02:00
|
|
|
#include "rtc_tools/rtc_event_log_visualizer/proto/chart.pb.h"
|
2016-09-28 17:42:01 -07:00
|
|
|
RTC_POP_IGNORING_WUNDEF()
|
2019-07-25 13:57:41 +02:00
|
|
|
#include "rtc_tools/rtc_event_log_visualizer/plot_base.h"
|
2016-08-23 18:15:25 -07:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class ProtobufPlot final : public Plot {
|
|
|
|
|
public:
|
|
|
|
|
ProtobufPlot();
|
|
|
|
|
~ProtobufPlot() override;
|
|
|
|
|
void Draw() override;
|
|
|
|
|
};
|
|
|
|
|
|
2021-02-22 12:43:39 +01:00
|
|
|
class ABSL_DEPRECATED("Use PlotCollection and ExportProtobuf() instead")
|
|
|
|
|
ProtobufPlotCollection final : public PlotCollection {
|
2016-08-23 18:15:25 -07:00
|
|
|
public:
|
2021-02-22 12:43:39 +01:00
|
|
|
ProtobufPlotCollection();
|
2016-08-23 18:15:25 -07:00
|
|
|
~ProtobufPlotCollection() override;
|
|
|
|
|
void Draw() override;
|
|
|
|
|
Plot* AppendNewPlot() override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2019-07-25 13:57:41 +02:00
|
|
|
#endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
|