From e7f69038da3b3e6788f54b19b9c10e4f1df8370a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 27 Mar 2014 10:53:33 -0700 Subject: [PATCH] Add EGL_NOK_swap_region definition. I couldn't find a spec for this one on the internet, but this matches the prototype in eglmesaext.h. The note in swap_region2 says: 4) How is this extension an improvement over EGL_NOK_swap_region? RESOLVED: This extension builds on the previous EGL_NOK_swap_region extension by requiring that the implementation considers the update region provided by the application as a mandate rather than a hint. This allows for region-restricted rendering without requiring the use of preserved buffer swaps which may be relatively expensive for the implementation. Furthermore, whilst preserved swap behaviour is necessary for incremental rendering, many applications fully re-render modified surface regions and so don't require preserved swap behaviour. This extension provides a lighter weight surface update mechanism for such applications. --- registry/egl.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/registry/egl.xml b/registry/egl.xml index b84e493..6f6ebc3 100644 --- a/registry/egl.xml +++ b/registry/egl.xml @@ -1126,6 +1126,13 @@ EGLint *rects EGLint n_rects + + EGLBoolean eglSwapBuffersRegionNOK + EGLDisplay dpy + EGLSurface surface + EGLint numRects + const EGLint *rects + EGLBoolean eglSwapBuffersRegion2NOK EGLDisplay dpy @@ -1862,6 +1869,11 @@ + + + + +