Well, why the hell is electron/chromium using private APIs? That seems like the real problem here...
https://www.chromium.org/developers/design-documents/chromiu...
Technical details aside, it describes two methods of performing delegated rendering on Mac. One uses public APIs and causes a "reduction in performance and increase in GPU power consumption." The other uses the reverse-engineered CAContext API.