Fix incorrect assumptions of native GraphicBuffer ctor/dtor/lifetime.
authorJarkko Pöyry <jpoyry@google.com>
Thu, 16 Apr 2015 20:35:48 +0000 (13:35 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Fri, 17 Apr 2015 00:17:23 +0000 (17:17 -0700)
commit7eaad3854365713746308b264d9b6c5ddda841fe
tree9767fe4e7d6d4c275905fcfece27a4d32660fc26
parentd495285941bddc0b64320af61f26d158e98a6e75
Fix incorrect assumptions of native GraphicBuffer ctor/dtor/lifetime.

- Do not expect C1 ctor to return this on x86 and ARM64.
- Use initCheck() to check if ctor failed.
- Use native object refcounting methods to handle object lifetime.

Bug: 20218384
Change-Id: Ia5f22c841291655df4970988bde1fe142c85bff5
framework/platform/android/tcuAndroidInternals.cpp
framework/platform/android/tcuAndroidInternals.hpp