⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248886 in webkit


Ignore:
Timestamp:
Aug 19, 2019, 7:16:43 PM (7 years ago)
Author:
jer.noble@apple.com
Message:

Source/WebCore:
[Cocoa] Fix misspelling of -preventsDisplaySleepForVideoPlayback
https://bugs.webkit.org/show_bug.cgi?id=200774
<rdar://problem/54321071>

Reviewed by Eric Carlson.

Only declare the API on platforms where that API is undefined, so as
to catch this kind of misspelling at compile time.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:

(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):

Source/WebCore/PAL:
[Cocoa] Adopt -preventDisplaySleepForVideoPlayback
https://bugs.webkit.org/show_bug.cgi?id=200774
<rdar://problem/54321071>

Reviewed by Eric Carlson.

  • pal/spi/mac/AVFoundationSPI.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r248879 r248886  
     12019-08-19  Jer Noble  <jer.noble@apple.com>
     2
     3        [Cocoa] Fix misspelling of -preventsDisplaySleepForVideoPlayback
     4        https://bugs.webkit.org/show_bug.cgi?id=200774
     5        <rdar://problem/54321071>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Only declare the API on platforms where that API is undefined, so as
     10        to catch this kind of misspelling at compile time.
     11
     12        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     13        (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
     14
    1152019-08-19  Justin Fan  <justin_fan@apple.com>
    216
  • trunk/Source/WebCore/PAL/ChangeLog

    r248854 r248886  
     12019-08-19  Jer Noble  <jer.noble@apple.com>
     2
     3        [Cocoa] Adopt -preventDisplaySleepForVideoPlayback
     4        https://bugs.webkit.org/show_bug.cgi?id=200774
     5        <rdar://problem/54321071>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * pal/spi/mac/AVFoundationSPI.h:
     10
    1112019-08-19  Youenn Fablet  <youenn@apple.com>
    212
  • trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h

    r248697 r248886  
    308308#endif
    309309
     310#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MAX_ALLOWED < 130000)
     311@interface AVSampleBufferDisplayLayer (WebCorePrivate)
     312@property (assign, nonatomic) BOOL preventsDisplaySleepDuringVideoPlayback;
     313@end
     314#endif
     315
    310316#if !USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && !PLATFORM(MACCATALYST)
    311317#import <AVFoundation/AVAudioSession.h>
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r248846 r248886  
    6666@end
    6767
    68 @interface AVSampleBufferDisplayLayer (WebCorePrivate)
    69 @property (assign, nonatomic) BOOL preventDisplaySleepForVideoPlayback;
    70 @end
    71 
    7268namespace WebCore {
    7369using namespace PAL;
     
    763759    }
    764760
    765     if ([m_sampleBufferDisplayLayer respondsToSelector:@selector(setPreventDisplaySleepForVideoPlayback:)])
    766         m_sampleBufferDisplayLayer.get().preventDisplaySleepForVideoPlayback = NO;
     761    if ([m_sampleBufferDisplayLayer respondsToSelector:@selector(setPreventsDisplaySleepDuringVideoPlayback:)])
     762        m_sampleBufferDisplayLayer.get().preventsDisplaySleepDuringVideoPlayback = NO;
    767763
    768764    [m_synchronizer addRenderer:m_sampleBufferDisplayLayer.get()];
Note: See TracChangeset for help on using the changeset viewer.