2019-12-10 14:14:09 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright 2019 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-06-03 09:24:06 +02:00
|
|
|
#include "api/adaptation/resource.h"
|
2019-12-10 14:14:09 +01:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2020-05-28 16:22:42 +02:00
|
|
|
const char* ResourceUsageStateToString(ResourceUsageState usage_state) {
|
|
|
|
|
switch (usage_state) {
|
|
|
|
|
case ResourceUsageState::kOveruse:
|
|
|
|
|
return "kOveruse";
|
|
|
|
|
case ResourceUsageState::kUnderuse:
|
|
|
|
|
return "kUnderuse";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-06 12:49:57 +01:00
|
|
|
ResourceListener::~ResourceListener() {}
|
2019-12-10 14:14:09 +01:00
|
|
|
|
2020-06-01 17:59:05 +02:00
|
|
|
Resource::Resource() {}
|
2019-12-10 14:14:09 +01:00
|
|
|
|
2020-06-01 17:59:05 +02:00
|
|
|
Resource::~Resource() {}
|
2019-12-10 14:14:09 +01:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|