Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 747bb571ff355c8fc4fb9bd9676d9caf61647d66
      
https://github.com/WebKit/WebKit/commit/747bb571ff355c8fc4fb9bd9676d9caf61647d66
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-28 (Tue, 28 Jul 2026)

  Changed paths:
    M Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.cpp

  Log Message:
  -----------
  DisplayCaptureSourceCocoa::generateFrame() first switchOn takes Variant 
alternatives by value
https://bugs.webkit.org/show_bug.cgi?id=320163
rdar://183098892

Reviewed by Youenn Fablet.

The switchOn call computing imageSize took RetainPtr<IOSurfaceRef>,
RefPtr<NativeImage>, and RetainPtr<CMSampleBufferRef> by value, causing
an extra retain/release per invocation. The second switchOn over the
same frame variable already takes these by reference; make the first
one consistent.

* Source/WebCore/platform/mediastream/cocoa/DisplayCaptureSourceCocoa.cpp:
(WebCore::DisplayCaptureSourceCocoa::emitFrame):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to