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>
Wed, 24 Aug 2016 19:13:37 +0000 (12:13 -0700)
commitd4079aff759713e7c7dd14cecb585a7290e80772
tree81a3c7e863ca1cbc1fc492ef5dc8754c6e0dd592
parent686715335adfe17628a1132140f6a0d51e730cf6
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