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

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

Issue 2722583002: Add Metal video view in AppRTCMobile and metal availability macro. (Closed)
Patch Set: Replace macro check to be gcc compatible as well. Created 3 years, 10 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/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h
index 681c457516fdf040770904207659cb55be46ba0d..49e5963fd863fff97dd6cc0adbe030521725c7d3 100644
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h
@@ -12,8 +12,13 @@
#import "WebRTC/RTCVideoRenderer.h"
+// Check if metal is supported in WebRTC.
+// NOTE: Currently arm64 == Metal.
+#if defined(__aarch64__)
+#define RTC_SUPPORTS_METAL
+#endif
+
NS_ASSUME_NONNULL_BEGIN
-RTC_EXPORT
/**
* RTCMTLVideoView is thin wrapper around MTKView.
@@ -22,6 +27,8 @@ RTC_EXPORT
* bounds using Metal.
*/
NS_CLASS_AVAILABLE_IOS(9)
+
+RTC_EXPORT
@interface RTCMTLVideoView : UIView <RTCVideoRenderer>
@end
« 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