Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a20f2f1daa95270f7dd904539502e380674fcdee
https://github.com/WebKit/WebKit/commit/a20f2f1daa95270f7dd904539502e380674fcdee
Author: Youenn Fablet <[email protected]>
Date: 2024-04-29 (Mon, 29 Apr 2024)
Changed paths:
M Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp
M Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.h
Log Message:
-----------
Deallocate stored VPIO unit after being stopped for some time
rdar://126738470
https://bugs.webkit.org/show_bug.cgi?id=272964
Reviewed by Eric Carlson.
Keeping a VPIO unit allocated is triggering CPU activity.
It is best for efficiency to deallocate it.
We do this after the VPIO unit gets unused for one minute, to retain the VPIO
unit with a web page decides to switch of microphone.
Manually tested.
* Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp:
(WebCore::CoreAudioSharedUnit::CoreAudioSharedUnit):
(WebCore::CoreAudioSharedUnit::setStoredVPIOUnit):
(WebCore::CoreAudioSharedUnit::takeStoredVPIOUnit):
(WebCore::CoreAudioSharedUnit::deallocateStoredVPIOUnit):
* Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.h:
Canonical link: https://commits.webkit.org/278098@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes