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 | |
| 11 | #include "call/adaptation/resource.h" |
| 12 | |
Evan Shrubsole | aa6fbc1 | 2020-02-25 16:26:01 +0100 | [diff] [blame] | 13 | #include "absl/algorithm/container.h" |
Henrik Boström | 48258ac | 2020-02-06 12:49:57 +0100 | [diff] [blame] | 14 | #include "rtc_base/checks.h" |
Henrik Boström | b04b2a1 | 2019-12-10 14:14:09 +0100 | [diff] [blame] | 15 | |
| 16 | namespace webrtc { |
| 17 | |
Henrik Boström | f0eef12 | 2020-05-28 16:22:42 +0200 | [diff] [blame] | 18 | const char* ResourceUsageStateToString(ResourceUsageState usage_state) { |
| 19 | switch (usage_state) { |
| 20 | case ResourceUsageState::kOveruse: |
| 21 | return "kOveruse"; |
| 22 | case ResourceUsageState::kUnderuse: |
| 23 | return "kUnderuse"; |
| 24 | } |
| 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 |