Changeset 264723 in webkit


Ignore:
Timestamp:
Jul 22, 2020 1:16:00 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

Unreviewed build fix after r264710, r264719, r264721: use more HAVE_AVPLAYER_VIDEORANGEOVERRIDE.

  • platform/PlatformScreen.h:
  • platform/mac/PlatformScreenMac.mm:

(WebCore::collectScreenProperties):

  • Guard more code with HAVE(AVPLAYER_VIDEORANGEOVERRIDE).
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r264722 r264723  
     12020-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
    1102020-07-22  Fujii Hironori  <Hironori.Fujii@sony.com>
    211
  • trunk/Source/WebCore/platform/PlatformScreen.h

    r264710 r264723  
    8989    DolbyVisionPQ,
    9090};
    91 #if PLATFORM(MAC)
     91#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE)
    9292WEBCORE_EXPORT DynamicRangeMode preferredDynamicRangeMode(Widget* = nullptr);
    9393#else
  • trunk/Source/WebCore/platform/mac/PlatformScreenMac.mm

    r264710 r264723  
    9999}
    100100
     101#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE)
    101102static DynamicRangeMode convertAVVideoRangeToEnum(NSString* range)
    102103{
     
    115116    return DynamicRangeMode::None;
    116117}
     118#endif
    117119
    118120ScreenProperties collectScreenProperties()
     
    141143        DynamicRangeMode dynamicRangeMode = DynamicRangeMode::None;
    142144
     145#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE)
    143146        if (PAL::isAVFoundationFrameworkAvailable() && [PAL::getAVPlayerClass() respondsToSelector:@selector(preferredVideoRangeForDisplays:)]) {
    144147            dynamicRangeMode = convertAVVideoRangeToEnum([PAL::getAVPlayerClass() preferredVideoRangeForDisplays:@[ @(displayID) ]]);
    145148            screenSupportsHighDynamicRange = dynamicRangeMode > DynamicRangeMode::Standard;
    146149        }
     150#endif
     151#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) && USE(MEDIATOOLBOX)
     152        else
     153#endif
    147154#if USE(MEDIATOOLBOX)
    148         else if (PAL::isMediaToolboxFrameworkAvailable() && PAL::canLoad_MediaToolbox_MTShouldPlayHDRVideo())
     155        if (PAL::isMediaToolboxFrameworkAvailable() && PAL::canLoad_MediaToolbox_MTShouldPlayHDRVideo())
    149156            screenSupportsHighDynamicRange = PAL::softLink_MediaToolbox_MTShouldPlayHDRVideo((__bridge CFArrayRef)@[ @(displayID) ]);
    150157#endif
     
    369376}
    370377
     378#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE)
    371379DynamicRangeMode preferredDynamicRangeMode(Widget* widget)
    372380{
     
    382390    return DynamicRangeMode::Standard;
    383391}
     392#endif
    384393
    385394FloatRect toUserSpace(const NSRect& rect, NSWindow *destination)
Note: See TracChangeset for help on using the changeset viewer.