[webkit-changes] [WebKit/WebKit] 6ff556: Under memory pressure, non active SourceBuffers sh...
Jean-Yves Avenard
noreply at github.com
Mon Feb 27 02:40:10 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6ff5566a514b479065e34a377acd3f6a00173417
https://github.com/WebKit/WebKit/commit/6ff5566a514b479065e34a377acd3f6a00173417
Author: Jean-Yves Avenard <jya at apple.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
A LayoutTests/media/media-source/media-managedmse-memorypressure-inactive-expected.txt
A LayoutTests/media/media-source/media-managedmse-memorypressure-inactive.html
M LayoutTests/platform/glib/TestExpectations
M Source/WebCore/platform/graphics/SourceBufferPrivate.cpp
M Source/WebCore/platform/graphics/SourceBufferPrivate.h
M Source/WebCore/platform/graphics/TrackBuffer.cpp
M Source/WebKit/WebProcess/GPU/media/SourceBufferPrivateRemote.cpp
M Source/WebKit/WebProcess/GPU/media/SourceBufferPrivateRemote.h
Log Message:
-----------
Under memory pressure, non active SourceBuffers should be completely emptied
https://bugs.webkit.org/show_bug.cgi?id=252957
rdar://105940463
Reviewed by Youenn Fablet.
Fully clear all track buffers of a non active source buffer as it's not
currently playing.
* LayoutTests/media/media-source/media-managedmse-memorypressure-inactive-expected.txt: Added.
* LayoutTests/media/media-source/media-managedmse-memorypressure-inactive.html: Added.
* LayoutTests/platform/glib/TestExpectations: Memory Pressure handler isn't set on these platforms.
* Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:
(WebCore::SourceBufferPrivate::clearTrackBuffers):
(WebCore::SourceBufferPrivate::memoryPressure):
(WebCore::SourceBufferPrivate::removeCodedFrames): Fly by fix, ensure m_client is set.
* Source/WebCore/platform/graphics/SourceBufferPrivate.h:
* Source/WebKit/WebProcess/GPU/media/SourceBufferPrivateRemote.cpp:
(WebKit::SourceBufferPrivateRemote::clearTrackBuffers):
* Source/WebKit/WebProcess/GPU/media/SourceBufferPrivateRemote.h:
Canonical link: https://commits.webkit.org/260870@main
More information about the webkit-changes
mailing list