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

Jean-Yves Avenard noreply at github.com
Mon Feb 27 20:14:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 98b2a211bb5343e6bac6144a68fcc572bd33e940
      https://github.com/WebKit/WebKit/commit/98b2a211bb5343e6bac6144a68fcc572bd33e940
  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/260920@main




More information about the webkit-changes mailing list