Go to file
Mathias Agopian 3330b20303 fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
When EGLImage extension is not available, SurfaceFlinger will fallback to using
glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an
extra copy. However this code path has never been exercised and had some bugs
which this patch fix.

Mainly the scale factor wasn't computed right when falling back on glDrawElements.
We also fallback to this mode of operation if a buffer doesn't have the adequate
usage bits for EGLImage usage.

This changes only code that is currently not executed. Some refactoring was needed to
keep the change clean. This doesn't change anything functionaly.
2009-10-06 17:00:25 -07:00
awt Removed system/framework/android.awt.jar. 2009-07-02 14:11:33 -05:00
camera/libcameraservice Add zoom functions and sendCommand. 2009-10-06 13:25:10 -07:00
cmds keystore: remove old implementation and test. 2009-09-24 13:35:26 +08:00
include fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
libs fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
opengl fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
vpn/java/android/net/vpn Remove deprecated VpnType.getDescription(). 2009-09-30 18:39:48 +08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Start using CLDR for some date-and-time strings and formats. 2009-05-15 10:15:50 -07:00