Allows Metal rendering in iOS simulator

Bug: webrtc:13561
Change-Id: I25ae8160956eb9140b827fb391686a02817bfa02
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/247520
Reviewed-by: Anders Carlsson <andersc@webrtc.org>
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Commit-Queue: Anders Carlsson <andersc@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35825}
This commit is contained in:
Jake Bromberg
2022-01-20 08:35:02 -08:00
committed by WebRTC LUCI CQ
parent a34eba8b05
commit 950c8e924e
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ void decompressionOutputCallback(void *decoderRef,
#endif
CFTypeRef keys[attributesSize] = {
#if defined(WEBRTC_IOS) && TARGET_OS_MACCATALYST
#if defined(WEBRTC_IOS) && (TARGET_OS_MACCATALYST || TARGET_OS_SIMULATOR)
kCVPixelBufferMetalCompatibilityKey,
#elif defined(WEBRTC_IOS)
kCVPixelBufferOpenGLESCompatibilityKey,

View File

@ -607,7 +607,7 @@ NSUInteger GetMaxSampleRate(const webrtc::H264ProfileLevelId &profile_level_id)
// buffers retrieved from the encoder's pixel buffer pool.
const size_t attributesSize = 3;
CFTypeRef keys[attributesSize] = {
#if defined(WEBRTC_IOS) && TARGET_OS_MACCATALYST
#if defined(WEBRTC_IOS) && (TARGET_OS_MACCATALYST || TARGET_OS_SIMULATOR)
kCVPixelBufferMetalCompatibilityKey,
#elif defined(WEBRTC_IOS)
kCVPixelBufferOpenGLESCompatibilityKey,