From dbe9245e2e362b12e184cd33b9a27b0901f81244 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 23 Sep 2013 17:22:10 -0700 Subject: 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 --- opengl/specs/README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'opengl/specs') diff --git a/opengl/specs/README b/opengl/specs/README index eb86869..f4de1b3 100644 --- a/opengl/specs/README +++ b/opengl/specs/README @@ -14,4 +14,8 @@ for use by Android extensions. 0x3145 EGL_SYNC_NATIVE_FENCE_FD_ANDROID (EGL_ANDROID_native_fence_sync) 0x3146 EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID (EGL_ANDROID_native_fence_sync) 0x3147 EGL_FRAMEBUFFER_TARGET_ANDROID (EGL_ANDROID_framebuffer_target) -0x3148 - 0x314F (unused) +0x3148 EGL_IMAGE_CROP_LEFT_ANDROID (EGL_ANDROID_image_crop) +0x3149 EGL_IMAGE_CROP_TOP_ANDROID (EGL_ANDROID_image_crop) +0x314A EGL_IMAGE_CROP_RIGHT_ANDROID (EGL_ANDROID_image_crop) +0x314B EGL_IMAGE_CROP_BOTTOM_ANDROID (EGL_ANDROID_image_crop) +0x314C - 0x314F (unused) -- cgit v1.1