[webkit-changes] [WebKit/WebKit] d87737: Relax the size checks in ScreenCaptureKitCaptureSo...
youennf
noreply at github.com
Thu Jul 11 09:01:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d877379c8d5d090714a9575e23d7ac10fcb9c2a8
https://github.com/WebKit/WebKit/commit/d877379c8d5d090714a9575e23d7ac10fcb9c2a8
Author: Youenn Fablet <youenn at apple.com>
Date: 2024-07-11 (Thu, 11 Jul 2024)
Changed paths:
M Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm
Log Message:
-----------
Relax the size checks in ScreenCaptureKitCaptureSource::streamDidOutputVideoSampleBuffer to prevent excessive reconfigurations
rdar://129309166
https://bugs.webkit.org/show_bug.cgi?id=276483
Reviewed by Eric Carlson.
In case of full presenter overlay mode with multiple windows captured, we sometimes switch between two sizes that are close one from th eother.
It is not worth reconfiguring since this is not stable, the size is rougthly the same and reconfiguration is costly.
We add a size check that allows some deviations and prevent reconfiguration when sizes do not really matter.
We do the same check when deciding whether cropping or not, for efficiency purposes.
* Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:
(WebCore::ScreenCaptureKitCaptureSource::streamDidOutputVideoSampleBuffer):
Canonical link: https://commits.webkit.org/280862@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list