Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c6a987220176b23ba187af2faed09548cf1b7727
      
https://github.com/WebKit/WebKit/commit/c6a987220176b23ba187af2faed09548cf1b7727
  Author: Jean-Yves Avenard <j...@apple.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm

  Log Message:
  -----------
  AVSampleBufferVideoRendererPowerOptimization is disabled when MediaSource 
uses WebCoreDecompression is enabled
https://bugs.webkit.org/show_bug.cgi?id=291993
rdar://149910379

Reviewed by Youenn Fablet.

By letting the AVSampleBufferDisplayLayer or AVSampleBufferVideoRenderer know 
what
the next sample presentation time will be, it can take some measures aimed
at reducing power usage.
The AVSampleBufferVideoRendererPowerOptimization API was no longer used when
the WebCoreDecompressionSession is in use.
Now we let the AVSBDL know at what time the next frame will be presented
if known so that it can enter low power mode.

Fly-by: don't run logging code unless log level is set to debug.

No change in JS observable state.
* Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm:
(WebCore::VideoMediaSampleRenderer::purgeDecodedSampleQueueAndDisplay):

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



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

Reply via email to