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

Unified Diff: webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h

Issue 2782563003: Replace Clock with timeutils in AudioEncoder. (Closed)
Patch Set: Fix for failing unittest. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h b/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
index 0124cc2fcc59f5d5bd5e0073922af4f0c95e721e..81abe24d89c817d0b8a6813d8ee27cc09fe628f3 100644
--- a/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h
@@ -21,8 +21,6 @@
namespace webrtc {
-class Clock;
-
class ControllerManager {
public:
virtual ~ControllerManager() = default;
@@ -37,16 +35,13 @@ class ControllerManager {
class ControllerManagerImpl final : public ControllerManager {
public:
struct Config {
- Config(int min_reordering_time_ms,
- float min_reordering_squared_distance,
- const Clock* clock);
+ Config(int min_reordering_time_ms, float min_reordering_squared_distance);
~Config();
// Least time since last reordering for a new reordering to be made.
int min_reordering_time_ms;
// Least squared distance from last scoring point for a new reordering to be
// made.
float min_reordering_squared_distance;
- const Clock* clock;
};
static std::unique_ptr<ControllerManager> Create(
@@ -58,8 +53,7 @@ class ControllerManagerImpl final : public ControllerManager {
int initial_frame_length_ms,
int initial_bitrate_bps,
bool initial_fec_enabled,
- bool initial_dtx_enabled,
- const Clock* clock);
+ bool initial_dtx_enabled);
explicit ControllerManagerImpl(const Config& config);

Powered by Google App Engine
This is Rietveld 408576698