OSDN Git Service

Use asynchronous lock/unlock API
authorFrancis Hart <fhart@nvidia.com>
Tue, 1 Apr 2014 12:30:53 +0000 (15:30 +0300)
committerGreg Hackmann <ghackmann@google.com>
Mon, 12 May 2014 16:13:03 +0000 (09:13 -0700)
commit8f3960179c56767e5077be8337792bd4e244b7d7
treead0fa76409402f78d8c2d4abfcef23cabe464afd
parenta9d49f99e69d8fc0e60b492b131322c96f47a232
Use asynchronous lock/unlock API

The gralloc API now provides a way for using lock/unlock with the Android
explicit synchronisation concept. This changes updates the GraphicBuffer class
to also expose this functionality, and updates the Surface class to make use of
in line with the dequeueBuffer/queueBuffer mechanism.

This new behaviour is dependent on GRALLOC_MODULE_API_VERSION_0_3. If the local
gralloc module does not support this then the existing synchronous lock/unlock
mechanism will be used.

Change-Id: I8c3fd9592e0c5400ac9be84450f55a77cc0bbdc5
include/ui/GraphicBuffer.h
include/ui/GraphicBufferMapper.h
libs/gui/Surface.cpp
libs/ui/GraphicBuffer.cpp
libs/ui/GraphicBufferMapper.cpp