Changeset 248886 in webkit
- Timestamp:
- Aug 19, 2019, 7:16:43 PM (7 years ago)
- Location:
- trunk/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
-
trunk/Source/WebCore/ChangeLog
r248879 r248886 1 2019-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 1 15 2019-08-19 Justin Fan <justin_fan@apple.com> 2 16 -
trunk/Source/WebCore/PAL/ChangeLog
r248854 r248886 1 2019-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 1 11 2019-08-19 Youenn Fablet <youenn@apple.com> 2 12 -
trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h
r248697 r248886 308 308 #endif 309 309 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 310 316 #if !USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && !PLATFORM(MACCATALYST) 311 317 #import <AVFoundation/AVAudioSession.h> -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r248846 r248886 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.