summaryrefslogtreecommitdiffstats
path: root/opengl/libs
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/libs
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/libs')
-rw-r--r--opengl/libs/EGL/eglApi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 04d5f45..0cc5265 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -99,6 +99,7 @@ extern char const * const gExtensionString =
"EGL_NV_system_time "
"EGL_ANDROID_image_native_buffer " // mandatory
"EGL_KHR_wait_sync " // strongly recommended
+ "EGL_ANDROID_recordable " // mandatory
;
// extensions not exposed to applications but used by the ANDROID system
@@ -106,8 +107,7 @@ extern char const * const gExtensionString =
// "EGL_IMG_hibernate_process " // optional
// "EGL_ANDROID_native_fence_sync " // strongly recommended
// "EGL_ANDROID_framebuffer_target " // mandatory for HWC 1.1
-// "EGL_ANDROID_recordable " // mandatory
-
+// "EGL_ANDROID_image_crop " // optional
/*
* EGL Extensions entry-points exposed to 3rd party applications