Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: ui/gl/gl_bindings_autogen_egl.h

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Update GLSurfaceAdapter Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_egl.h ('k') | ui/gl/gl_bindings_autogen_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_autogen_egl.h
diff --git a/ui/gl/gl_bindings_autogen_egl.h b/ui/gl/gl_bindings_autogen_egl.h
index 28d762aa190cc364033b4e614c9cdd574e6fbbaf..4eb2e9dd790cd3e021099233490433e05e415cfa 100644
--- a/ui/gl/gl_bindings_autogen_egl.h
+++ b/ui/gl/gl_bindings_autogen_egl.h
@@ -192,6 +192,11 @@ typedef EGLBoolean(GL_BINDING_CALL* eglSurfaceAttribProc)(EGLDisplay dpy,
EGLint value);
typedef EGLBoolean(GL_BINDING_CALL* eglSwapBuffersProc)(EGLDisplay dpy,
EGLSurface surface);
+typedef EGLBoolean(GL_BINDING_CALL* eglSwapBuffersWithDamageKHRProc)(
+ EGLDisplay dpy,
+ EGLSurface surface,
+ EGLint* rects,
+ EGLint n_rects);
typedef EGLBoolean(GL_BINDING_CALL* eglSwapIntervalProc)(EGLDisplay dpy,
EGLint interval);
typedef EGLBoolean(GL_BINDING_CALL* eglTerminateProc)(EGLDisplay dpy);
@@ -217,6 +222,7 @@ struct ExtensionsEGL {
bool b_EGL_KHR_reusable_sync;
bool b_EGL_KHR_stream;
bool b_EGL_KHR_stream_consumer_gltexture;
+ bool b_EGL_KHR_swap_buffers_with_damage;
bool b_EGL_KHR_wait_sync;
bool b_EGL_NV_post_sub_buffer;
bool b_EGL_NV_stream_consumer_gltexture_yuv;
@@ -278,6 +284,7 @@ struct ProcsEGL {
eglStreamPostD3DTextureNV12ANGLEProc eglStreamPostD3DTextureNV12ANGLEFn;
eglSurfaceAttribProc eglSurfaceAttribFn;
eglSwapBuffersProc eglSwapBuffersFn;
+ eglSwapBuffersWithDamageKHRProc eglSwapBuffersWithDamageKHRFn;
eglSwapIntervalProc eglSwapIntervalFn;
eglTerminateProc eglTerminateFn;
eglWaitClientProc eglWaitClientFn;
@@ -445,6 +452,10 @@ class GL_EXPORT EGLApi {
EGLint attribute,
EGLint value) = 0;
virtual EGLBoolean eglSwapBuffersFn(EGLDisplay dpy, EGLSurface surface) = 0;
+ virtual EGLBoolean eglSwapBuffersWithDamageKHRFn(EGLDisplay dpy,
+ EGLSurface surface,
+ EGLint* rects,
+ EGLint n_rects) = 0;
virtual EGLBoolean eglSwapIntervalFn(EGLDisplay dpy, EGLint interval) = 0;
virtual EGLBoolean eglTerminateFn(EGLDisplay dpy) = 0;
virtual EGLBoolean eglWaitClientFn(void) = 0;
@@ -522,6 +533,8 @@ class GL_EXPORT EGLApi {
::gl::g_current_egl_context->eglStreamPostD3DTextureNV12ANGLEFn
#define eglSurfaceAttrib ::gl::g_current_egl_context->eglSurfaceAttribFn
#define eglSwapBuffers ::gl::g_current_egl_context->eglSwapBuffersFn
+#define eglSwapBuffersWithDamageKHR \
+ ::gl::g_current_egl_context->eglSwapBuffersWithDamageKHRFn
#define eglSwapInterval ::gl::g_current_egl_context->eglSwapIntervalFn
#define eglTerminate ::gl::g_current_egl_context->eglTerminateFn
#define eglWaitClient ::gl::g_current_egl_context->eglWaitClientFn
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_egl.h ('k') | ui/gl/gl_bindings_autogen_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698