OSDN Git Service

GLConsumer: start using EGL_ANDROID_image_crop
authorJamie Gennis <jgennis@google.com>
Tue, 24 Sep 2013 00:22:10 +0000 (17:22 -0700)
committerJamie Gennis <jgennis@google.com>
Wed, 2 Oct 2013 17:34:35 +0000 (17:34 +0000)
commitdbe9245e2e362b12e184cd33b9a27b0901f81244
tree2ec66077c2872d9df9659eb71562cfeea556b902
parent93573e91c22ba8329222c69cd7f099f5703fb444
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
include/gui/GLConsumer.h
libs/gui/GLConsumer.cpp
opengl/include/EGL/eglext.h
opengl/libs/EGL/eglApi.cpp
opengl/specs/README