OSDN Git Service

Squashed: gralloc1/binder/requestor
authorDan Stoza <stoza@google.com>
Thu, 2 Jun 2016 01:21:44 +0000 (18:21 -0700)
committerDan Stoza <stoza@google.com>
Mon, 12 Sep 2016 21:20:14 +0000 (14:20 -0700)
commitf62eaf5994ac86f4d84e2d34af727617919d7bb7
tree0e996e84447a0fb87b45be2c110aaa15d6defc82
parenteb03fd3a8bb5b1217b6a0eec513666856d7c6df3
Squashed: gralloc1/binder/requestor

This is a combination of the following three commits:

libui: Convert Allocator and Mapper to gralloc1

Converts GraphicBufferAllocator and GraphicBufferMapper to speak
gralloc 1.0 (via the C++ shim and optionally the 1On0 adapter) instead
of gralloc 0.x.

-----

Create graphic buffer using binder interfaces

Using binder interfaces rather than directly allocating the buffer prevents
SELinux warnings.

-----

Add requestor name to GraphicBuffer alloc metadata

Adds a requestor name (usually the BufferQueue consumer's name) to the
metadata that GraphicBufferAllocator stores on allocation so that
`dumpsys SurfaceFlinger` can attempt to attribute buffer usage to the
correct client.

Bug: 28401203
Bug: 29402015
Bug: 30776557
14 files changed:
include/gui/GraphicBufferAlloc.h
include/gui/IGraphicBufferAlloc.h
include/ui/GraphicBuffer.h
include/ui/GraphicBufferAllocator.h
include/ui/GraphicBufferMapper.h
libs/gui/BufferQueueProducer.cpp
libs/gui/GLConsumer.cpp
libs/gui/GraphicBufferAlloc.cpp
libs/gui/IGraphicBufferAlloc.cpp
libs/ui/GraphicBuffer.cpp
libs/ui/GraphicBufferAllocator.cpp
libs/ui/GraphicBufferMapper.cpp
opengl/libs/Android.mk
opengl/libs/EGL/eglApi.cpp