replicant-frameworks_native/libs/surfaceflinger
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
..
DisplayHardware minor SurfaceFlinger code cleanup and remove unnecessary tests 2009-09-24 14:57:26 -07:00
tests merge master to master_gl 2009-05-22 02:16:08 -07:00
Android.mk fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
Barrier.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
BlurFilter.cpp fix again [2102410] Home Screen is not displayed in the background in Landscape Mode 2009-09-16 17:00:19 -07:00
BlurFilter.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
clz.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
clz.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Layer.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
Layer.h fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerBase.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerBase.h fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerBlur.cpp fix again [2102410] Home Screen is not displayed in the background in Landscape Mode 2009-09-16 17:00:19 -07:00
LayerBlur.h fix again [2102410] Home Screen is not displayed in the background in Landscape Mode 2009-09-16 17:00:19 -07:00
LayerBuffer.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerBuffer.h fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerDim.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
LayerDim.h fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly 2009-09-07 16:32:45 -07:00
MessageQueue.cpp implement Mutex and Condition with pthread instead of calling futex directly. 2009-07-13 15:14:23 -07:00
MessageQueue.h make use of the perfectly fine List.h instead of our own reimplementation of a linked list. 2009-04-28 03:17:50 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
SurfaceFlinger.cpp fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
SurfaceFlinger.h fix [2167050] glTexImage2D code path buggy in SurfaceFlinger 2009-10-06 17:00:25 -07:00
Tokenizer.cpp Integrate from //sandbox/mathias/donut/...@145728 2009-04-10 14:24:30 -07:00
Tokenizer.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Transform.cpp Region now has its own implementation instead of relying on SkRegion, which allows us to break libui's dependency on libcorecg. 2009-05-17 23:34:16 -07:00
Transform.h fix [2142193] disable GL_LINEAR when not needed 2009-09-23 18:55:02 -07:00