summaryrefslogtreecommitdiffstats
path: root/include/gui/Surface.h
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-06-05 15:01:58 -0700
committerDan Stoza <stoza@google.com>2015-06-05 15:01:58 -0700
commit107fbe5599016b0e35145a1a00c4f238b63d61e4 (patch)
treefea2c90086fdc3b5f76f13c66cdde8f7585ff3b9 /include/gui/Surface.h
parent9d2c5a7c678bd384df0fb29952cf8943e7b1b160 (diff)
downloadframeworks_native-107fbe5599016b0e35145a1a00c4f238b63d61e4.zip
frameworks_native-107fbe5599016b0e35145a1a00c4f238b63d61e4.tar.gz
frameworks_native-107fbe5599016b0e35145a1a00c4f238b63d61e4.tar.bz2
libgui: Add getConsumerName
Adds a getConsumerName method to IGraphicBufferProducer and Surface. Currently, the name is cached inside of IGBP and is updated on connect and dequeueBuffer, which should be good enough for most uses. Bug: 6667401 Change-Id: Ife94bd89023fe7c00bad916932b9a19233fd2290
Diffstat (limited to 'include/gui/Surface.h')
-rw-r--r--include/gui/Surface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 261b07c..72f1067 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -106,6 +106,9 @@ public:
* See IGBP::setGenerationNumber for more information. */
status_t setGenerationNumber(uint32_t generationNumber);
+ // See IGraphicBufferProducer::getConsumerName
+ String8 getConsumerName() const;
+
protected:
virtual ~Surface();