Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 1 | /* |
| 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öm | e2e8c17 | 2020-06-03 09:24:06 +0200 | [diff] [blame] | 11 | #include "api/adaptation/resource.h" |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 12 | |
Fabien Vallée | f8b5bfe | 2020-10-22 10:08:50 +0200 | [diff] [blame] | 13 | #include "rtc_base/checks.h" |
| 14 | |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 15 | namespace webrtc { |
| 16 | |
Henrik Boström | f0eef12 | 2020-05-28 16:22:42 +0200 | [diff] [blame] | 17 | const 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 Wiberg | c95b939 | 2020-11-08 00:49:37 +0100 | [diff] [blame^] | 24 | RTC_CHECK_NOTREACHED(); |
Henrik Boström | f0eef12 | 2020-05-28 16:22:42 +0200 | [diff] [blame] | 25 | } |
| 26 | |
Henrik Boström | 48258ac | 2020-02-06 12:49:57 +0100 | [diff] [blame] | 27 | ResourceListener::~ResourceListener() {} |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 28 | |
Henrik Boström | 5cc28b0 | 2020-06-01 17:59:05 +0200 | [diff] [blame] | 29 | Resource::Resource() {} |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 30 | |
Henrik Boström | 5cc28b0 | 2020-06-01 17:59:05 +0200 | [diff] [blame] | 31 | Resource::~Resource() {} |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 32 | |
| 33 | } // namespace webrtc |