diff --git a/modules/audio_device/mac/audio_device_mac.h b/modules/audio_device/mac/audio_device_mac.h index bb06395d03..e1afd74843 100644 --- a/modules/audio_device/mac/audio_device_mac.h +++ b/modules/audio_device/mac/audio_device_mac.h @@ -282,10 +282,8 @@ class AudioDeviceMac : public AudioDeviceGeneric { uint16_t _outputDeviceIndex; AudioDeviceID _inputDeviceID; AudioDeviceID _outputDeviceID; -#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 AudioDeviceIOProcID _inDeviceIOProcID; AudioDeviceIOProcID _deviceIOProcID; -#endif bool _inputDeviceIsSpecified; bool _outputDeviceIsSpecified; diff --git a/modules/desktop_capture/mac/desktop_configuration.mm b/modules/desktop_capture/mac/desktop_configuration.mm index 93fb3f6226..eeb035f2b0 100644 --- a/modules/desktop_capture/mac/desktop_configuration.mm +++ b/modules/desktop_capture/mac/desktop_configuration.mm @@ -16,16 +16,6 @@ #include "rtc_base/checks.h" -#if !defined(MAC_OS_X_VERSION_10_7) || \ - MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 - -@interface NSScreen (LionAPI) -- (CGFloat)backingScaleFactor; -- (NSRect)convertRectToBacking:(NSRect)aRect; -@end - -#endif // MAC_OS_X_VERSION_10_7 - namespace webrtc { namespace { @@ -60,16 +50,9 @@ MacDisplayConfiguration GetConfigurationForScreen(NSScreen* screen) { NSRect ns_bounds = [screen frame]; display_config.bounds = NSRectToDesktopRect(ns_bounds); - // If the host is running Mac OS X 10.7+ or later, query the scaling factor - // between logical and physical (aka "backing") pixels, otherwise assume 1:1. - if ([screen respondsToSelector:@selector(backingScaleFactor)] && - [screen respondsToSelector:@selector(convertRectToBacking:)]) { - display_config.dip_to_pixel_scale = [screen backingScaleFactor]; - NSRect ns_pixel_bounds = [screen convertRectToBacking: ns_bounds]; - display_config.pixel_bounds = NSRectToDesktopRect(ns_pixel_bounds); - } else { - display_config.pixel_bounds = display_config.bounds; - } + display_config.dip_to_pixel_scale = [screen backingScaleFactor]; + NSRect ns_pixel_bounds = [screen convertRectToBacking:ns_bounds]; + display_config.pixel_bounds = NSRectToDesktopRect(ns_pixel_bounds); // Determine if the display is built-in or external. display_config.is_builtin = CGDisplayIsBuiltin(display_config.id);