summaryrefslogtreecommitdiff
path: root/libs/gui/Surface.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2015-06-08 09:32:50 -0700
committer Dan Stoza <stoza@google.com> 2015-06-08 09:40:49 -0700
commitc6f30bdee1f634eb90d68cb76efe935b6535a1e8 (patch)
tree2cff76d1f8c26db9b7a96995b833cd86ec468329 /libs/gui/Surface.cpp
parent5b36ea44c58f8def561bf37c79d3452b21e2deab (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.cpp4
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);