summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/platform_android.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2014-01-28 17:03:03 -0800
committerChad Versace <chad.versace@linux.intel.com>2014-03-17 15:36:04 -0700
commitbc2cbc0951ded883dc610672a6f6d4cca5d99502 (patch)
treeed372276f04833dbcf44a41aed090f4260e1d1a6 /src/egl/drivers/dri2/platform_android.c
parent3fdfbd2572ea42f3ef71db032b31cc87ea274e11 (diff)
downloadexternal_mesa3d-bc2cbc0951ded883dc610672a6f6d4cca5d99502.zip
external_mesa3d-bc2cbc0951ded883dc610672a6f6d4cca5d99502.tar.gz
external_mesa3d-bc2cbc0951ded883dc610672a6f6d4cca5d99502.tar.bz2
egl/dri2: Dispatch eglCopyBuffers by display, not driver
Add dri2_egl_display_vtbl::copy_buffers, set it for each platform, and let egl_dri2 dispatch eglCopyBuffers to that. This prepares for the EGL platform extensions. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r--src/egl/drivers/dri2/platform_android.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 69de23e..4aac5f6 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -648,6 +648,7 @@ static struct dri2_egl_display_vtbl droid_display_vtbl = {
.swap_interval = dri2_fallback_swap_interval,
.swap_buffers = droid_swap_buffers,
.swap_buffers_with_damage = dri2_fallback_swap_buffers_with_damage,
+ .copy_buffers = dri2_fallback_copy_buffers,
.query_buffer_age = dri2_fallback_query_buffer_age,
};