Enable clang::find_bad_constructs for remote_bitrate_estimator.
This CL removes //build/config/clang:find_bad_constructs from the suppressed_configs list, which means that clang:find_bad_constructs is now enabled on these translation units. Bug: webrtc:9251, webrtc:163 Change-Id: Id377fcd78166e53aad7c663c3ffec5e57fdb1274 Reviewed-on: https://webrtc-review.googlesource.com/89383 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24049}
This commit is contained in:
committed by
Commit Bot
parent
ee01a839d2
commit
64f813e71f
@ -11,6 +11,7 @@ import("../../webrtc.gni")
|
||||
rtc_static_library("bitrate_controller") {
|
||||
visibility = [ "*" ]
|
||||
sources = [
|
||||
"bitrate_controller.cc",
|
||||
"bitrate_controller_impl.cc",
|
||||
"bitrate_controller_impl.h",
|
||||
"include/bitrate_controller.h",
|
||||
|
||||
23
modules/bitrate_controller/bitrate_controller.cc
Normal file
23
modules/bitrate_controller/bitrate_controller.cc
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2018 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.
|
||||
*
|
||||
* Usage: this class will register multiple RtcpBitrateObserver's one at each
|
||||
* RTCP module. It will aggregate the results and run one bandwidth estimation
|
||||
* and push the result to the encoders via BitrateObserver(s).
|
||||
*/
|
||||
|
||||
#include "modules/bitrate_controller/include/bitrate_controller.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
size_t BitrateObserver::pacer_queue_size_in_bytes() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
@ -45,7 +45,7 @@ class BitrateObserver {
|
||||
int64_t target_set_time,
|
||||
uint64_t congestion_window) {}
|
||||
virtual void OnBytesAcked(size_t bytes) {}
|
||||
virtual size_t pacer_queue_size_in_bytes() { return 0; }
|
||||
virtual size_t pacer_queue_size_in_bytes();
|
||||
virtual ~BitrateObserver() {}
|
||||
};
|
||||
|
||||
@ -67,7 +67,7 @@ class BitrateController : public Module, public RtcpBandwidthObserver {
|
||||
static BitrateController* CreateBitrateController(const Clock* clock,
|
||||
RtcEventLog* event_log);
|
||||
|
||||
virtual ~BitrateController() {}
|
||||
~BitrateController() override {}
|
||||
|
||||
// Deprecated, use raw pointer to BitrateController instance instead.
|
||||
// Creates RtcpBandwidthObserver caller responsible to delete.
|
||||
|
||||
Reference in New Issue
Block a user