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

Unified Diff: webrtc/sdk/BUILD.gn

Issue 2651743007: Add metal view, shaders and renderer. (Closed)
Patch Set: Minor fixes 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 | « no previous file | webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/BUILD.gn
diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn
index 3e44f9b4a33c4a3d569369e970f9a16056e8e707..2ef83d2a92cec0e28f55972bb5bbff3f831557e3 100644
--- a/webrtc/sdk/BUILD.gn
+++ b/webrtc/sdk/BUILD.gn
@@ -67,7 +67,22 @@ if (is_ios || is_mac) {
"objc/Framework/Headers/WebRTC/RTCCameraPreviewView.h",
"objc/Framework/Headers/WebRTC/UIDevice+RTCDevice.h",
]
+ if (current_cpu == "arm64") {
+ sources += [
+ "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h",
+ "objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm",
+ "objc/Framework/Classes/Metal/RTCMTLVideoView.m",
+ ]
+ }
+
libs = [ "AVFoundation.framework" ]
+ if (current_cpu == "arm64") {
+ libs += [
+ "CoreVideo.framework",
+ "Metal.framework",
+ "MetalKit.framework",
+ ]
+ }
}
if (!build_with_chromium) {
sources += [
@@ -291,6 +306,7 @@ if (is_ios || is_mac) {
"objc/Framework/Headers/WebRTC/RTCMediaStreamTrack.h",
"objc/Framework/Headers/WebRTC/RTCMetrics.h",
"objc/Framework/Headers/WebRTC/RTCMetricsSampleInfo.h",
+ "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h",
"objc/Framework/Headers/WebRTC/RTCPeerConnection.h",
"objc/Framework/Headers/WebRTC/RTCPeerConnectionFactory.h",
"objc/Framework/Headers/WebRTC/RTCRtpCodecParameters.h",
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698