From 976e89ff24da3b2cdf206e8ef8f222f54fb467de Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 23 Nov 2019 17:22:39 +0100 Subject: Bug 1156: GBM: Bring up incl GL rendering (TODO: GBM working page flip / sync) - EGLSurface: Factor out 'eglCreate[Platform]WindowSurface' NEWT egl.gbm.WindowDriver -- Properly use GBM fourcc format and use as visualID for GBM surface creation and EGL config selection -- Create eglSurface within this class -- Hook up GBM/DRM page flip (not working yet, no visible artifacts - no swap) - ProxySurfaceImpl.surfaceSwap() call upstreamSurface's implementation if available TODO: 'Permission denied' calling: - drmSetMaster (optional) - drmModeSetCrtc - drmModePageFlip --- src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nativewindow/classes/jogamp') diff --git a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java index 4c53ddb94..9f650f760 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java +++ b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java @@ -163,6 +163,10 @@ public abstract class ProxySurfaceImpl implements ProxySurface { @Override public boolean surfaceSwap() { + final NativeSurface upstreamSurface = upstream.getUpstreamSurface(); + if( null != upstreamSurface ) { + return upstreamSurface.surfaceSwap(); + } return false; } -- cgit v1.2.3