Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0c01b830e20090c83cef7692e6236ff4b1171ed2
      
https://github.com/WebKit/WebKit/commit/0c01b830e20090c83cef7692e6236ff4b1171ed2
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-05-23 (Fri, 23 May 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/SourceBufferPrivate.cpp
    M Source/WebCore/platform/graphics/TrackBuffer.cpp
    M Source/WebCore/platform/graphics/TrackBuffer.h
    M Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm

  Log Message:
  -----------
  TrackBuffer.decodeQueue() shouldn't be a public method.
https://bugs.webkit.org/show_bug.cgi?id=293459
rdar://151887171

Reviewed by Youenn Fablet.

We move the whole logic to add a new sample to the TrackBuffer in the 
TrackBuffer class instead.
Similarly, we move the logic to retrieve the next frame to be enqueued for 
decoding in the TrackBuffer.

This allows for some simplification and removal of duplicated code.
It will also allows to make the tracking of the next minimumUpcomingSampleTime
dynamic required for a follow-up change.

* Source/WebCore/platform/graphics/TrackBuffer.cpp:
(WebCore::TrackBuffer::addSample): addSample now handles adding the sample to 
the global sample map and the decode queue.
(WebCore::TrackBuffer::nextSample): Method added.

Canonical link: https://commits.webkit.org/295339@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to