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

Changeset 249144 in webkit


Ignore:
Timestamp:
Aug 27, 2019, 9:19:29 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r248886. rdar://problem/54365278

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:

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@248886 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608-branch/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608-branch/Source/WebCore/ChangeLog

    r249055 r249144  
     12019-08-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r248886. rdar://problem/54365278
     4
     5    Source/WebCore:
     6    [Cocoa] Fix misspelling of -preventsDisplaySleepForVideoPlayback
     7    https://bugs.webkit.org/show_bug.cgi?id=200774
     8    <rdar://problem/54321071>
     9   
     10    Reviewed by Eric Carlson.
     11   
     12    Only declare the API on platforms where that API is undefined, so as
     13    to catch this kind of misspelling at compile time.
     14   
     15    * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     16    (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
     17   
     18    Source/WebCore/PAL:
     19    [Cocoa] Adopt -preventDisplaySleepForVideoPlayback
     20    https://bugs.webkit.org/show_bug.cgi?id=200774
     21    <rdar://problem/54321071>
     22   
     23    Reviewed by Eric Carlson.
     24   
     25    * pal/spi/mac/AVFoundationSPI.h:
     26   
     27   
     28    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     29
     30    2019-08-19  Jer Noble  <jer.noble@apple.com>
     31
     32            [Cocoa] Fix misspelling of -preventsDisplaySleepForVideoPlayback
     33            https://bugs.webkit.org/show_bug.cgi?id=200774
     34            <rdar://problem/54321071>
     35
     36            Reviewed by Eric Carlson.
     37
     38            Only declare the API on platforms where that API is undefined, so as
     39            to catch this kind of misspelling at compile time.
     40
     41            * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     42            (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
     43
    1442019-08-23  Kocsen Chung  <kocsen_chung@apple.com>
    245
  • branches/safari-608-branch/Source/WebCore/PAL/ChangeLog

    r248580 r249144  
     12019-08-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r248886. rdar://problem/54365278
     4
     5    Source/WebCore:
     6    [Cocoa] Fix misspelling of -preventsDisplaySleepForVideoPlayback
     7    https://bugs.webkit.org/show_bug.cgi?id=200774
     8    <rdar://problem/54321071>
     9   
     10    Reviewed by Eric Carlson.
     11   
     12    Only declare the API on platforms where that API is undefined, so as
     13    to catch this kind of misspelling at compile time.
     14   
     15    * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     16    (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::ensureLayer):
     17   
     18    Source/WebCore/PAL:
     19    [Cocoa] Adopt -preventDisplaySleepForVideoPlayback
     20    https://bugs.webkit.org/show_bug.cgi?id=200774
     21    <rdar://problem/54321071>
     22   
     23    Reviewed by Eric Carlson.
     24   
     25    * pal/spi/mac/AVFoundationSPI.h:
     26   
     27   
     28    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     29
     30    2019-08-19  Jer Noble  <jer.noble@apple.com>
     31
     32            [Cocoa] Adopt -preventDisplaySleepForVideoPlayback
     33            https://bugs.webkit.org/show_bug.cgi?id=200774
     34            <rdar://problem/54321071>
     35
     36            Reviewed by Eric Carlson.
     37
     38            * pal/spi/mac/AVFoundationSPI.h:
     39
    1402019-08-12  Alan Coon  <alancoon@apple.com>
    241
  • branches/safari-608-branch/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h

    r247355 r249144  
    318318#endif
    319319
     320#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MAX_ALLOWED < 130000)
     321@interface AVSampleBufferDisplayLayer (WebCorePrivate)
     322@property (assign, nonatomic) BOOL preventsDisplaySleepDuringVideoPlayback;
     323@end
     324#endif
     325
    320326#if !USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && !PLATFORM(MACCATALYST)
    321327#import <AVFoundation/AVAudioSession.h>
  • branches/safari-608-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r248838 r249144  
    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.