Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: webrtc/api/objc/RTCRtpEncodingParameters.mm

Issue 1903663002: Build dynamic iOS SDK. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix test gyp Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/objc/RTCRtpEncodingParameters.h ('k') | webrtc/api/objc/RTCRtpEncodingParameters+Private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCRtpEncodingParameters.mm
diff --git a/webrtc/api/objc/RTCRtpEncodingParameters.mm b/webrtc/api/objc/RTCRtpEncodingParameters.mm
deleted file mode 100644
index af07a0485d64e92f57ddd00842264f0cb91e1b63..0000000000000000000000000000000000000000
--- a/webrtc/api/objc/RTCRtpEncodingParameters.mm
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2016 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.
- */
-
-#import "RTCRtpEncodingParameters+Private.h"
-
-@implementation RTCRtpEncodingParameters
-
-@synthesize isActive = _isActive;
-@synthesize maxBitrateBps = _maxBitrateBps;
-
-static const int kBitrateUnlimited = -1;
-
-- (instancetype)init {
- return [super init];
-}
-
-- (instancetype)initWithNativeParameters:
- (const webrtc::RtpEncodingParameters &)nativeParameters {
- if (self = [self init]) {
- _isActive = nativeParameters.active;
- // TODO(skvlad): Replace with rtc::Optional once the C++ code is updated.
- if (nativeParameters.max_bitrate_bps != kBitrateUnlimited) {
- _maxBitrateBps =
- [NSNumber numberWithInt:nativeParameters.max_bitrate_bps];
- }
- }
- return self;
-}
-
-- (webrtc::RtpEncodingParameters)nativeParameters {
- webrtc::RtpEncodingParameters parameters;
- parameters.active = _isActive;
- if (_maxBitrateBps != nil) {
- parameters.max_bitrate_bps = _maxBitrateBps.intValue;
- }
- return parameters;
-}
-
-@end
« no previous file with comments | « webrtc/api/objc/RTCRtpEncodingParameters.h ('k') | webrtc/api/objc/RTCRtpEncodingParameters+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698