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

Changeset 236350 in webkit


Ignore:
Timestamp:
Sep 21, 2018, 1:00:03 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

Move AVVideoPerformanceMetrics into AVFoundationSPI.h
https://bugs.webkit.org/show_bug.cgi?id=189842

Reviewed by Jon Lee.

Source/WebCore:

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

Source/WebCore/PAL:

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236348 r236350  
     12018-09-21  Jer Noble  <jer.noble@apple.com>
     2
     3        Move AVVideoPerformanceMetrics into AVFoundationSPI.h
     4        https://bugs.webkit.org/show_bug.cgi?id=189842
     5
     6        Reviewed by Jon Lee.
     7
     8        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     9
    1102018-09-21  Chris Dumez  <cdumez@apple.com>
    211
  • trunk/Source/WebCore/PAL/ChangeLog

    r236337 r236350  
     12018-09-21  Jer Noble  <jer.noble@apple.com>
     2
     3        Move AVVideoPerformanceMetrics into AVFoundationSPI.h
     4        https://bugs.webkit.org/show_bug.cgi?id=189842
     5
     6        Reviewed by Jon Lee.
     7
     8        * pal/spi/mac/AVFoundationSPI.h:
     9
    1102018-09-21  Jonathan Bedard  <jbedard@apple.com>
    211
  • trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h

    r233501 r236350  
    157157
    158158#endif // !PLATFORM(IOS)
     159
     160@interface AVVideoPerformanceMetrics : NSObject
     161@property (nonatomic, readonly) unsigned long totalNumberOfVideoFrames;
     162@property (nonatomic, readonly) unsigned long numberOfDroppedVideoFrames;
     163@property (nonatomic, readonly) unsigned long numberOfCorruptedVideoFrames;
     164@property (nonatomic, readonly) unsigned long numberOfNonDisplayCompositedVideoFrames;
     165@property (nonatomic, readonly) double totalFrameDelay;
     166@end
     167
    159168#endif // USE(APPLE_INTERNAL_SDK)
    160169
     
    228237#if ((PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED < 110000)) && __has_include(<AVFoundation/AVQueuedSampleBufferRendering.h>)
    229238#import <AVFoundation/AVQueuedSampleBufferRendering.h>
     239#elif __has_include(<AVFoundation/AVSampleBufferDisplayLayer_Private.h>)
     240#import <AVFoundation/AVSampleBufferDisplayLayer_Private.h>
    230241#elif __has_include(<AVFoundation/AVSampleBufferDisplayLayer.h>)
    231242#import <AVFoundation/AVSampleBufferDisplayLayer.h>
     243NS_ASSUME_NONNULL_BEGIN
     244@interface AVSampleBufferDisplayLayer (VideoPerformanceMetrics)
     245- (AVVideoPerformanceMetrics *)videoPerformanceMetrics;
     246@end
     247NS_ASSUME_NONNULL_END
    232248#else
    233249
     
    246262- (void)requestMediaDataWhenReadyOnQueue:(dispatch_queue_t)queue usingBlock:(void (^)(void))block;
    247263- (void)stopRequestingMediaData;
    248 @end
    249 
    250 NS_ASSUME_NONNULL_END
    251 
     264- (AVVideoPerformanceMetrics *)videoPerformanceMetrics;
     265@end
     266NS_ASSUME_NONNULL_END
    252267#endif // __has_include(<AVFoundation/AVSampleBufferDisplayLayer.h>)
    253268
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r236204 r236350  
    8181
    8282#pragma mark -
    83 #pragma mark AVVideoPerformanceMetrics
    84 
    85 @interface AVVideoPerformanceMetrics : NSObject
    86 - (unsigned long)totalNumberOfVideoFrames;
    87 - (unsigned long)numberOfDroppedVideoFrames;
    88 - (unsigned long)numberOfCorruptedVideoFrames;
    89 - (double)totalFrameDelay;
    90 @end
    91 
    92 @interface AVSampleBufferDisplayLayer (WebCoreAVSampleBufferDisplayLayerPrivate)
    93 - (AVVideoPerformanceMetrics *)videoPerformanceMetrics;
    94 @end
    95 
    96 #pragma mark -
    9783#pragma mark AVStreamSession
    9884
Note: See TracChangeset for help on using the changeset viewer.