summaryrefslogtreecommitdiffstats
path: root/opengl/include
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2013-09-23 17:22:10 -0700
committerJamie Gennis <jgennis@google.com>2013-10-02 17:34:35 +0000
commitdbe9245e2e362b12e184cd33b9a27b0901f81244 (patch)
tree2ec66077c2872d9df9659eb71562cfeea556b902 /opengl/include
parent93573e91c22ba8329222c69cd7f099f5703fb444 (diff)
downloadframeworks_native-dbe9245e2e362b12e184cd33b9a27b0901f81244.zip
frameworks_native-dbe9245e2e362b12e184cd33b9a27b0901f81244.tar.gz
frameworks_native-dbe9245e2e362b12e184cd33b9a27b0901f81244.tar.bz2
GLConsumer: start using EGL_ANDROID_image_crop
This change makes GLConsumer use the EGL_ANDROID_image_crop extension when available on a device. The crop rectangle is passed to the EGL driver when creating EGLImages, allowing the crop to be performed by the driver rather than using the texture transform matrix. Bug: 10897141 Change-Id: I63e9a5d5c85067376abc420e3639154468346311
Diffstat (limited to 'opengl/include')
-rw-r--r--opengl/include/EGL/eglext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h
index 6c505ed..3b2984a 100644
--- a/opengl/include/EGL/eglext.h
+++ b/opengl/include/EGL/eglext.h
@@ -494,6 +494,14 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy,
#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
#endif
+#ifndef EGL_ANDROID_image_crop
+#define EGL_ANDROID_image_crop 1
+#define EGL_IMAGE_CROP_LEFT_ANDROID 0x3148
+#define EGL_IMAGE_CROP_TOP_ANDROID 0x3149
+#define EGL_IMAGE_CROP_RIGHT_ANDROID 0x314A
+#define EGL_IMAGE_CROP_BOTTOM_ANDROID 0x314B
+#endif
+
#ifndef EGL_ANDROID_blob_cache
#define EGL_ANDROID_blob_cache 1
typedef khronos_ssize_t EGLsizeiANDROID;