Removing RTC_SUPPORTS_METAL compilation flag. This flag is a holdover from before either macOS or the iOS Simulator supported Metal rendering.
Bug: webrtc:12638 Change-Id: I21054bdcf4c941086234562c4ee1740754050590 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216700 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34362}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
f2ed401679
commit
28e582d55a
@ -12,10 +12,7 @@
|
||||
|
||||
#import "sdk/objc/base/RTCVideoRenderer.h"
|
||||
#import "sdk/objc/components/capturer/RTCCameraVideoCapturer.h"
|
||||
#if defined(RTC_SUPPORTS_METAL)
|
||||
#import "sdk/objc/components/renderer/metal/RTCMTLVideoView.h" // nogncheck
|
||||
#endif
|
||||
#import "sdk/objc/components/renderer/opengl/RTCEAGLVideoView.h"
|
||||
#import "sdk/objc/components/renderer/metal/RTCMTLVideoView.h"
|
||||
#import "sdk/objc/helpers/RTCCameraPreviewView.h"
|
||||
|
||||
#include <memory>
|
||||
@ -49,11 +46,7 @@
|
||||
- (void)loadView {
|
||||
_view = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
|
||||
#if defined(RTC_SUPPORTS_METAL)
|
||||
_remoteVideoView = [[RTC_OBJC_TYPE(RTCMTLVideoView) alloc] initWithFrame:CGRectZero];
|
||||
#else
|
||||
_remoteVideoView = [[RTC_OBJC_TYPE(RTCEAGLVideoView) alloc] initWithFrame:CGRectZero];
|
||||
#endif
|
||||
_remoteVideoView.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
[_view addSubview:_remoteVideoView];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user