-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSE] Reuse "fudge factor" when samples are removed
https://bugs.webkit.org/show_bug.cgi?id=258869 Reviewed by Xabier Rodriguez-Calvar. Currently when TrackBuffer::removeSamples is called and erasedRanged is created from the samples, removing small gaps between samples is not done. It causes that in some cases many separated ranges are created which has impact on performance of removing samples. Reusing "eliminate small gap" mechanism from SourceBufferPrivate::processMediaSample solves the problem. * Source/WebCore/html/TimeRanges.cpp: (WebCore::TimeRanges::add): * Source/WebCore/html/TimeRanges.h: * Source/WebCore/platform/graphics/PlatformTimeRanges.cpp: (WebCore::PlatformTimeRanges::timeFudgeFactor): (WebCore::PlatformTimeRanges::add): * Source/WebCore/platform/graphics/PlatformTimeRanges.h: * Source/WebCore/platform/graphics/SourceBufferPrivate.cpp: (WebCore::SourceBufferPrivate::processMediaSample): * Source/WebCore/platform/graphics/SourceBufferPrivate.h: (WebCore::SourceBufferPrivate::timeFudgeFactor const): * Source/WebCore/platform/graphics/TrackBuffer.cpp: (WebCore::TrackBuffer::addBufferedRange): (WebCore::TrackBuffer::removeSamples): * Source/WebCore/platform/graphics/TrackBuffer.h: * Tools/TestWebKitAPI/Tests/WebCore/TimeRanges.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/266357@main
- Loading branch information
1 parent
a799925
commit c3bf8dd
Showing
9 changed files
with
65 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters