blob: dac03fe019d89482e91a29242b3027da80f28c8b [file] [log] [blame]
Henrik Boströmb04b2a12019-12-10 14:14:09 +01001/*
2 * Copyright 2019 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Henrik Boströme2e8c172020-06-03 09:24:06 +020011#include "api/adaptation/resource.h"
Henrik Boströmb04b2a12019-12-10 14:14:09 +010012
Fabien Valléef8b5bfe2020-10-22 10:08:50 +020013#include "rtc_base/checks.h"
14
Henrik Boströmb04b2a12019-12-10 14:14:09 +010015namespace webrtc {
16
Henrik Boströmf0eef122020-05-28 16:22:42 +020017const char* ResourceUsageStateToString(ResourceUsageState usage_state) {
18 switch (usage_state) {
19 case ResourceUsageState::kOveruse:
20 return "kOveruse";
21 case ResourceUsageState::kUnderuse:
22 return "kUnderuse";
23 }
Karl Wibergc95b9392020-11-08 00:49:37 +010024 RTC_CHECK_NOTREACHED();
Henrik Boströmf0eef122020-05-28 16:22:42 +020025}
26
Henrik Boström48258ac2020-02-06 12:49:57 +010027ResourceListener::~ResourceListener() {}
Henrik Boströmb04b2a12019-12-10 14:14:09 +010028
Henrik Boström5cc28b02020-06-01 17:59:05 +020029Resource::Resource() {}
Henrik Boströmb04b2a12019-12-10 14:14:09 +010030
Henrik Boström5cc28b02020-06-01 17:59:05 +020031Resource::~Resource() {}
Henrik Boströmb04b2a12019-12-10 14:14:09 +010032
33} // namespace webrtc