Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 return fallback_encoder_->OnDroppedFrame(); | 127 return fallback_encoder_->OnDroppedFrame(); |
| 128 return encoder_->OnDroppedFrame(); | 128 return encoder_->OnDroppedFrame(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 bool VideoEncoderSoftwareFallbackWrapper::SupportsNativeHandle() const { | 131 bool VideoEncoderSoftwareFallbackWrapper::SupportsNativeHandle() const { |
| 132 if (fallback_encoder_) | 132 if (fallback_encoder_) |
| 133 return fallback_encoder_->SupportsNativeHandle(); | 133 return fallback_encoder_->SupportsNativeHandle(); |
| 134 return encoder_->SupportsNativeHandle(); | 134 return encoder_->SupportsNativeHandle(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 const char* VideoEncoderSoftwareFallbackWrapper::ImplementationName() const { | |
| 138 if (fallback_encoder_) | |
| 139 return fallback_encoder_->ImplementationName(); | |
|
stefan-webrtc
2015/10/16 07:47:03
Should we add "fallback-" to the string here?
pbos-webrtc
2015/10/16 13:12:05
Not unless we can know when an implementation is c
stefan-webrtc
2015/10/22 09:33:34
You don't have to manipulate the string for every
pbos-webrtc
2015/10/22 15:11:21
Done, constructing the string once we start using
| |
| 140 return encoder_->ImplementationName(); | |
| 141 } | |
| 142 | |
| 137 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() { | 143 int VideoEncoderSoftwareFallbackWrapper::GetTargetFramerate() { |
| 138 if (fallback_encoder_) | 144 if (fallback_encoder_) |
| 139 return fallback_encoder_->GetTargetFramerate(); | 145 return fallback_encoder_->GetTargetFramerate(); |
| 140 return encoder_->GetTargetFramerate(); | 146 return encoder_->GetTargetFramerate(); |
| 141 } | 147 } |
| 142 | 148 |
| 143 } // namespace webrtc | 149 } // namespace webrtc |
| OLD | NEW |