Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add capability to use ScreenCaptureKit for thumbnail generation #41328

Merged
merged 1 commit into from Feb 14, 2024

Conversation

MarshallOfSound
Copy link
Member

@MarshallOfSound MarshallOfSound commented Feb 14, 2024

This aligns us with Chromiums flags / capabilities in regards to using SCK for everything. Currently on 14.4 Electron apps will pop warnings for usage of deprecated APIs. With this change and a few "enable-features" toggles.

--enable-features="ScreenCaptureKitMac,ScreenCaptureKitStreamPickerSonoma,ThumbnailCapturerMac:capture_mode/sc_screenshot_manager"

As Chromium enables these by default Electron will inherit those changes, apps wishing to skip ahead can apply these flags early.

This is safe to land / backport as is as in the default state this change is a no-op, multiple flags need to be enabled before any new codepath is followed

Notes: Added support for ThumbnailCapturerMac and ScreenCaptureKitStreamPickerSonoma chromium feature flags to bypass deprecated API warning on macOS 14.4

This aligns us with Chromiums flags / capabilities in regards to using SCK for
everything. Currently on 14.4 Electron apps will pop warnings for usage of
deprecated APIs.  With this change and a few "enable-features" toggles.

`--enable-features="ScreenCaptureKitMac,ScreenCaptureKitStreamPickerSonoma,ThumbnailCapturerMac:capture_mode/sc_screenshot_manager"`

As Chromium enables these by default Electron will inherit those changes, apps wishing to skip ahead can apply these flags early.
@MarshallOfSound MarshallOfSound added fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases target/29-x-y PR should also be added to the "29-x-y" branch. labels Feb 14, 2024
@MarshallOfSound MarshallOfSound requested a review from a team as a code owner February 14, 2024 02:14
@MarshallOfSound MarshallOfSound added the semver/patch backwards-compatible bug fixes label Feb 14, 2024
@VerteDinde VerteDinde merged commit 32920af into main Feb 14, 2024
23 checks passed
@VerteDinde VerteDinde deleted the thumb-sck-cap branch February 14, 2024 04:46
Copy link

release-clerk bot commented Feb 14, 2024

Release Notes Persisted

Added support for ThumbnailCapturerMac and ScreenCaptureKitStreamPickerSonoma chromium feature flags to bypass deprecated API warning on macOS 14.4

@trop
Copy link
Contributor

trop bot commented Feb 14, 2024

I have automatically backported this PR to "29-x-y", please check out #41329

@trop trop bot added in-flight/29-x-y merged/29-x-y PR was merged to the "29-x-y" branch. and removed target/29-x-y PR should also be added to the "29-x-y" branch. in-flight/29-x-y labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases merged/29-x-y PR was merged to the "29-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants