summaryrefslogtreecommitdiffstats
path: root/src/compiler/SConscript
diff options
context:
space:
mode:
authorPaulo Zanoni <[email protected]>2019-05-01 15:42:26 -0700
committerEric Engestrom <[email protected]>2019-05-14 12:41:14 +0000
commit04ecda3b3c85b5a3a52f4fa1a3e0f88c17231408 (patch)
treee0c74a7d73426ea424399e85fd37a863516bf645 /src/compiler/SConscript
parent9520e7c1e9206f94f73bb143483147e4600122ec (diff)
egl: store the native surface pointer in struct _egl_surface
Each platform stores this in a different place: - platform_drm uses dri2_surf->gbm_surf->base - platform_android uses dri2_surf->window - platform_wayland uses dri2_surf->wl_win - platform_x11 uses dri2_surf->drawable - platform_x11_dri3 uses dri3_surf->loader_drawable.drawable - haiku doesn't even store it! We need access to the native surface since the specification asks us to refuse creating a new surface if there's already an EGLSurface associated with native_surface. An alternative to this patch would be to create a new API.GetNativeWindow callback that each platform would have to implement. While that's something we can definitely do, I prefer this approach. Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Signed-off-by: Paulo Zanoni <[email protected]>
Diffstat (limited to 'src/compiler/SConscript')
0 files changed, 0 insertions, 0 deletions