Go to file
Eric Penner 5c3d243fcc GLProducer: Reference count images rather than buffers.
In most cases, EGLImages can be created one-to-one with graphic
buffers in slots, but that was difficult due to some special
cases:
- ReleaseTexImage binds a custom 'unslotted' debug image.
- When all slots are freed, we still need to hang on to one.

These cases were handled by keeping an additional reference to
the 'current' buffer (mCurrentTextureBuf), but we would create
new images since we can't reference count them in the same way.
This patch uses the same semantics, except that it reference
counts the image (an EglImage wrapper class) rather than just
buffer. The wrapper class also detects the cases when we need
a new EGLImage, and only creates them in those rare cases.

Change-Id: I2915761dbe49d2a9bda1f59e60f857543634636b
2014-07-21 18:16:12 -07:00
build Add Dalvik heap definition for 7" xhdpi devices. 2013-05-06 15:06:20 -07:00
cmds Add MAC for remaining service_manager functionality. 2014-07-15 10:11:33 -07:00
data/etc Add HDMI-CEC feature xml. 2014-07-11 15:37:33 +09:00
include GLProducer: Reference count images rather than buffers. 2014-07-21 18:16:12 -07:00
libs GLProducer: Reference count images rather than buffers. 2014-07-21 18:16:12 -07:00
opengl Add data capturing of glCompressedTexImage2D and glCompressedTexSubImage2D calls. 2014-07-07 11:57:45 +01:00
services CW on L: Fix a SIGSEGV crash in sensor service. 2014-07-15 11:10:44 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE resolved conflicts for merge of adee6b35 to honeycomb-plus-aosp 2011-01-17 14:17:12 -08:00