[webkit-changes] [WebKit/WebKit] fee371: ManagedMediaSource content should be evicted whene...

Jean-Yves Avenard noreply at github.com
Mon Feb 27 02:59:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fee371950f6239d24a6734e461dfcedd4a1daa8a
      https://github.com/WebKit/WebKit/commit/fee371950f6239d24a6734e461dfcedd4a1daa8a
  Author: Jean-Yves Avenard <jya at apple.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M LayoutTests/media/media-source/media-managedmse-memorypressure-expected.txt
    M LayoutTests/media/media-source/media-managedmse-memorypressure.html
    M Source/WebCore/html/HTMLMediaElement.cpp
    M Source/WebCore/page/MemoryRelease.cpp

  Log Message:
  -----------
  ManagedMediaSource content should be evicted whenever it is under memory pressure
https://bugs.webkit.org/show_bug.cgi?id=252938
rdar://105908445

Reviewed by Youenn Fablet.

Let the MediaElement control when eviction under memory pressure should
occur.

* LayoutTests/media/media-source/media-managedmse-memorypressure-expected.txt:
* LayoutTests/media/media-source/media-managedmse-memorypressure.html:
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::purgeBufferedDataIfPossible):
* Source/WebCore/page/MemoryRelease.cpp:
(WebCore::releaseCriticalMemory):

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




More information about the webkit-changes mailing list