OSDN Git Service

Add requestor name to GraphicBuffer alloc metadata
authorDan Stoza <stoza@google.com>
Tue, 23 Aug 2016 00:26:41 +0000 (17:26 -0700)
committerDan Stoza <stoza@google.com>
Thu, 25 Aug 2016 20:13:08 +0000 (13:13 -0700)
commita1d24b45ccb6f68448f478e2a847a5544276002b
treee794c6350eb475c1ecdcf891ad19ea0981ca8a4a
parentb10cd89507e8c492b2f5bb346d7839c8e04ffdfa
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: 30776557
Change-Id: I6e0f346584c871bb3b9d5481f82b697b0475a916
include/gui/GraphicBufferAlloc.h
include/gui/IGraphicBufferAlloc.h
include/ui/GraphicBuffer.h
include/ui/GraphicBufferAllocator.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
opengl/libs/EGL/eglApi.cpp