swt-initiative31 / prototype-skija

Eclipse SWT (custom-drawn widgets based on Skija)
https://www.eclipse.org/swt/
Eclipse Public License 2.0
4 stars 1 forks source link

Demo: Use GLCanvas for SkijaGC to render button #8

Open HeikoKlare opened 6 days ago

HeikoKlare commented 6 days ago

This is currently for demonstration purpose and not to be merged.

With this change, the SkijaGC is extended by the capability of rendering directly into the buffer of a GLCanvas, and this functionality is applied to the Button.

This change drastically improves performance as the bad-performing copy operation between Skia buffer and native buffer is avoided. Initial performance tests show a severe speedup of > 100 (i.e. 10.000%).