Added sample implementation of egl codepath (not yet used)