diff options
author | 2015-06-08 09:32:50 -0700 | |
---|---|---|
committer | 2015-06-08 09:40:49 -0700 | |
commit | c6f30bdee1f634eb90d68cb76efe935b6535a1e8 (patch) | |
tree | 2cff76d1f8c26db9b7a96995b833cd86ec468329 /libs/gui/Surface.cpp | |
parent | 5b36ea44c58f8def561bf37c79d3452b21e2deab (diff) |
libgui/SurfaceFlinger: Add getConsumerName
Adds a getConsumerName method to IGraphicBufferProducer and Surface.
Currently, the name is cached inside of IGBP and is update on connect
and dequeueBuffer, which should be good enough for most uses.
Bug: 6667401
Change-Id: I22c7881d778e495cf8276de7bbcd769e52429915
Diffstat (limited to 'libs/gui/Surface.cpp')
-rw-r--r-- | libs/gui/Surface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index aeb56e0024..df0661cf4e 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp @@ -111,6 +111,10 @@ status_t Surface::setGenerationNumber(uint32_t generation) { return result; } +String8 Surface::getConsumerName() const { + return mGraphicBufferProducer->getConsumerName(); +} + int Surface::hook_setSwapInterval(ANativeWindow* window, int interval) { Surface* c = getSelf(window); return c->setSwapInterval(interval); |