summaryrefslogtreecommitdiffstats
path: root/obex
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-05 17:07:12 -0700
committerMathias Agopian <mathias@google.com>2009-10-06 17:00:25 -0700
commit6950e428feaccc8164b989ef64e771a99948797a (patch)
treef6520613c5355eef110f3820469d7dc477598629 /obex
parent521f4f3af94e3a093a37af887d3e317a526b61a1 (diff)
downloadframeworks_base-6950e428feaccc8164b989ef64e771a99948797a.zip
frameworks_base-6950e428feaccc8164b989ef64e771a99948797a.tar.gz
frameworks_base-6950e428feaccc8164b989ef64e771a99948797a.tar.bz2
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.
Diffstat (limited to 'obex')
0 files changed, 0 insertions, 0 deletions