Add support for reporting "display composited video frames" through the VideoPlayback...
[WebKit-https.git] / Source / WebCore / platform / graphics / MediaPlayer.h
index 462a726..4809de3 100644 (file)
@@ -87,10 +87,11 @@ struct MediaEngineSupportParameters {
 };
 
 struct VideoPlaybackQualityMetrics {
-    unsigned totalVideoFrames;
-    unsigned droppedVideoFrames;
-    unsigned corruptedVideoFrames;
-    double totalFrameDelay;
+    uint32_t totalVideoFrames { 0 };
+    uint32_t droppedVideoFrames { 0 };
+    uint32_t corruptedVideoFrames { 0 };
+    double totalFrameDelay { 0 };
+    uint32_t displayCompositedVideoFrames { 0 };
 };
 
 class MediaPlayerClient {
@@ -540,9 +541,7 @@ public:
 
     unsigned long long fileSize() const;
 
-#if ENABLE(MEDIA_SOURCE)
     std::optional<VideoPlaybackQualityMetrics> videoPlaybackQualityMetrics();
-#endif
 
     void handlePlaybackCommand(PlatformMediaSession::RemoteControlCommandType);
     String sourceApplicationIdentifier() const;