Changeset 249144 in webkit
- Timestamp:
- Aug 27, 2019, 9:19:29 AM (7 years ago)
- Location:
- branches/safari-608-branch/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
PAL/ChangeLog (modified) (1 diff)
-
PAL/pal/spi/mac/AVFoundationSPI.h (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608-branch/Source/WebCore/ChangeLog
r249055 r249144 1 2019-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 1 44 2019-08-23 Kocsen Chung <kocsen_chung@apple.com> 2 45 -
branches/safari-608-branch/Source/WebCore/PAL/ChangeLog
r248580 r249144 1 2019-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 1 40 2019-08-12 Alan Coon <alancoon@apple.com> 2 41 -
branches/safari-608-branch/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h
r247355 r249144 318 318 #endif 319 319 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 320 326 #if !USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && !PLATFORM(MACCATALYST) 321 327 #import <AVFoundation/AVAudioSession.h> -
branches/safari-608-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r248838 r249144 66 66 @end 67 67 68 @interface AVSampleBufferDisplayLayer (WebCorePrivate)69 @property (assign, nonatomic) BOOL preventDisplaySleepForVideoPlayback;70 @end71 72 68 namespace WebCore { 73 69 using namespace PAL; … … 763 759 } 764 760 765 if ([m_sampleBufferDisplayLayer respondsToSelector:@selector(setPrevent DisplaySleepForVideoPlayback:)])766 m_sampleBufferDisplayLayer.get().prevent DisplaySleepForVideoPlayback = NO;761 if ([m_sampleBufferDisplayLayer respondsToSelector:@selector(setPreventsDisplaySleepDuringVideoPlayback:)]) 762 m_sampleBufferDisplayLayer.get().preventsDisplaySleepDuringVideoPlayback = NO; 767 763 768 764 [m_synchronizer addRenderer:m_sampleBufferDisplayLayer.get()];
Note:
See TracChangeset
for help on using the changeset viewer.