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

Changeset 236366 in webkit


Ignore:
Timestamp:
Sep 21, 2018, 3:56:55 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

Unreviewed Sierra Build Fix; ensure AVVideoPerformanceMetrics are defined on Sierra.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r236350 r236366  
     12018-09-21  Jer Noble  <jer.noble@apple.com>
     2
     3        Unreviewed Sierra Build Fix; ensure AVVideoPerformanceMetrics are defined on Sierra.
     4
     5        * pal/spi/mac/AVFoundationSPI.h:
     6
    172018-09-21  Jer Noble  <jer.noble@apple.com>
    28
  • trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h

    r236350 r236366  
    158158#endif // !PLATFORM(IOS)
    159159
     160#endif // USE(APPLE_INTERNAL_SDK)
     161
     162#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101300)
    160163@interface AVVideoPerformanceMetrics : NSObject
    161164@property (nonatomic, readonly) unsigned long totalNumberOfVideoFrames;
     
    165168@property (nonatomic, readonly) double totalFrameDelay;
    166169@end
    167 
    168 #endif // USE(APPLE_INTERNAL_SDK)
     170#endif
    169171
    170172#if PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK)
     
    237239#if ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED < 110000)) && __has_include(<AVFoundation/AVQueuedSampleBufferRendering.h>)
    238240#import <AVFoundation/AVQueuedSampleBufferRendering.h>
     241NS_ASSUME_NONNULL_BEGIN
     242@interface AVSampleBufferDisplayLayer (VideoPerformanceMetrics)
     243- (AVVideoPerformanceMetrics *)videoPerformanceMetrics;
     244@end
     245NS_ASSUME_NONNULL_END
    239246#elif __has_include(<AVFoundation/AVSampleBufferDisplayLayer_Private.h>)
    240247#import <AVFoundation/AVSampleBufferDisplayLayer_Private.h>
Note: See TracChangeset for help on using the changeset viewer.