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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h

Issue 2739793003: Revert of Add Metal video view in AppRTCMobile and metal availability macro. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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
11 #import <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 12
13 #import "WebRTC/RTCVideoRenderer.h" 13 #import "WebRTC/RTCVideoRenderer.h"
14 14
15 // Check if metal is supported in WebRTC.
16 // NOTE: Currently arm64 == Metal.
17 #if defined(__aarch64__)
18 #define RTC_SUPPORTS_METAL
19 #endif
20
21 NS_ASSUME_NONNULL_BEGIN 15 NS_ASSUME_NONNULL_BEGIN
16 RTC_EXPORT
22 17
23 /** 18 /**
24 * RTCMTLVideoView is thin wrapper around MTKView. 19 * RTCMTLVideoView is thin wrapper around MTKView.
25 * 20 *
26 * It has id<RTCVideoRenderer> property that renders video frames in the view's 21 * It has id<RTCVideoRenderer> property that renders video frames in the view's
27 * bounds using Metal. 22 * bounds using Metal.
28 */ 23 */
29 NS_CLASS_AVAILABLE_IOS(9) 24 NS_CLASS_AVAILABLE_IOS(9)
30
31 RTC_EXPORT
32 @interface RTCMTLVideoView : UIView <RTCVideoRenderer> 25 @interface RTCMTLVideoView : UIView <RTCVideoRenderer>
33 26
34 @end 27 @end
35 NS_ASSUME_NONNULL_END 28 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698