Skip to content

[RFC] Implement the window.resize method on the gbm platform

Lina Versace requested to merge linkmauve:gbm-resize into master

Created by: linkmauve

This fixes apitrace’s bug #390, which made eglretrace unusable on this platform.

Since gbm has no support for surface resizing, we need to destroy and recreate the gbm_surface. This requires tearing down and recreating the EGLSurface associated with it, which will unbind the current EGLContext.

I couldn’t find anywhere in Waffle how to retrieve the current struct wcore_context * in order to use it with wegl_make_current, so I had to duplicate this function to take an EGLContext. Is there any better solution? I’m not satisfied with this implementation at all.

Fixes https://github.com/apitrace/apitrace/issues/390

Merge request reports