replicant-frameworks_native/libs
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
..
binder Remove Parcel::writeIntPtr. 2014-06-12 15:26:39 +01:00
diskusage Report actual disk space used 2013-05-01 10:10:59 -07:00
gui GLProducer: Reference count images rather than buffers. 2014-07-21 18:16:12 -07:00
input Fixup more potential issues / warnings in string formats 2014-06-10 13:03:17 -07:00
ui am 38c9e132: am c1ffd351: am bd20e551: Merge "Use asynchronous lock/unlock API" 2014-05-12 18:18:47 +00:00