Changeset 264723 in webkit
- Timestamp:
- Jul 22, 2020, 1:16:00 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r264722 r264723 1 2020-07-22 David Kilzer <ddkilzer@apple.com> 2 3 Unreviewed build fix after r264710, r264719, r264721: use more HAVE_AVPLAYER_VIDEORANGEOVERRIDE. 4 5 * platform/PlatformScreen.h: 6 * platform/mac/PlatformScreenMac.mm: 7 (WebCore::collectScreenProperties): 8 - Guard more code with HAVE(AVPLAYER_VIDEORANGEOVERRIDE). 9 1 10 2020-07-22 Fujii Hironori <Hironori.Fujii@sony.com> 2 11 -
trunk/Source/WebCore/platform/PlatformScreen.h
r264710 r264723 89 89 DolbyVisionPQ, 90 90 }; 91 #if PLATFORM(MAC)91 #if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) 92 92 WEBCORE_EXPORT DynamicRangeMode preferredDynamicRangeMode(Widget* = nullptr); 93 93 #else -
trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm
r264710 r264723 99 99 } 100 100 101 #if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) 101 102 static DynamicRangeMode convertAVVideoRangeToEnum(NSString* range) 102 103 { … … 115 116 return DynamicRangeMode::None; 116 117 } 118 #endif 117 119 118 120 ScreenProperties collectScreenProperties() … … 141 143 DynamicRangeMode dynamicRangeMode = DynamicRangeMode::None; 142 144 145 #if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) 143 146 if (PAL::isAVFoundationFrameworkAvailable() && [PAL::getAVPlayerClass() respondsToSelector:@selector(preferredVideoRangeForDisplays:)]) { 144 147 dynamicRangeMode = convertAVVideoRangeToEnum([PAL::getAVPlayerClass() preferredVideoRangeForDisplays:@[ @(displayID) ]]); 145 148 screenSupportsHighDynamicRange = dynamicRangeMode > DynamicRangeMode::Standard; 146 149 } 150 #endif 151 #if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) && USE(MEDIATOOLBOX) 152 else 153 #endif 147 154 #if USE(MEDIATOOLBOX) 148 elseif (PAL::isMediaToolboxFrameworkAvailable() && PAL::canLoad_MediaToolbox_MTShouldPlayHDRVideo())155 if (PAL::isMediaToolboxFrameworkAvailable() && PAL::canLoad_MediaToolbox_MTShouldPlayHDRVideo()) 149 156 screenSupportsHighDynamicRange = PAL::softLink_MediaToolbox_MTShouldPlayHDRVideo((__bridge CFArrayRef)@[ @(displayID) ]); 150 157 #endif … … 369 376 } 370 377 378 #if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) 371 379 DynamicRangeMode preferredDynamicRangeMode(Widget* widget) 372 380 { … … 382 390 return DynamicRangeMode::Standard; 383 391 } 392 #endif 384 393 385 394 FloatRect toUserSpace(const NSRect& rect, NSWindow *destination)
Note:
See TracChangeset
for help on using the changeset viewer.