OSDN Git Service

Adding eglInitialize and eglTerminate image creation and deletion.
authorMichael Lentine <mlentine@google.com>
Thu, 2 Oct 2014 19:10:07 +0000 (12:10 -0700)
committerMichael Lentine <mlentine@google.com>
Thu, 9 Oct 2014 17:26:37 +0000 (10:26 -0700)
commit78be65e7bf6898c6afa55c9016f331ab1aa2503a
tree6d28426f9d0212cc01c688ac26c9166abb4551ad
parentb7702c5ce7f010fa5f19646fd79f28ff04e7014b
Adding eglInitialize and eglTerminate image creation and deletion.

Previously it was possible to have the driver's eglTerminate called beofre
eglDestroyImageKHR in GLConsumer. This was because we didn't increment the
refcount for the lifetime of the image. This could lead to a crash or a deadlock
when multiple threads called terminate and destroy simultaneously.

Bug: 17700483
Change-Id: I7010d0f1b3db875332e95630b5e098a5564ba755
libs/gui/GLConsumer.cpp