4 ms·
From the bug report: > It turns out Electron was overriding a private AppKit API (_cornerMask) to apply custom corner masks to vibrant views. > ... > By remo
by epistasis 1y ago
From the bug report:
> It turns out Electron was overriding a private AppKit API (_cornerMask) to apply custom corner masks to vibrant views.
> ...
> By removing the custom _cornerMask override and associated logic, we allow AppKit to handle shadows with its default pipeline. This resolves the GPU spike while retaining shadows as expected.
I'd say that most often usage of private APIs is because:
4. it probably shouldn't be done at all
- merlindru 1y agoI don't know what the comment you're replying to said, but further down the thread: > Electron's "_cornerMask" override was a dirty hack that was made in an effort to fix an ancient issue with corner smoothing. So Electron used this private API to fix an issue that shouldn't have existed at all, as far as I can tell