summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-04-03 14:22:05 -0700
committerDan Stoza <stoza@google.com>2015-04-07 15:05:40 -0700
commit634f5ee6a713b3cf4086a2af8e9b56e76cba245f (patch)
tree0e7bac84fd1a5c0986f794e62957aa33e8700010 /include/gui
parent1cd030be59c108cde25234f0d2da83a68a7cdd26 (diff)
downloadframeworks_native-634f5ee6a713b3cf4086a2af8e9b56e76cba245f.zip
frameworks_native-634f5ee6a713b3cf4086a2af8e9b56e76cba245f.tar.gz
frameworks_native-634f5ee6a713b3cf4086a2af8e9b56e76cba245f.tar.bz2
libgui: Plumb detachBuffer through ConsumerBase
Exposes IGraphicBufferConsumer::detachBuffer as a ConsumerBase method. attachBuffer is not currently exposed, because all current clients will be recycling buffers through the allocator. Bug: 19628705 Change-Id: I3e519767fa43d5d880c1d5695e31b60f6ad588af
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/ConsumerBase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gui/ConsumerBase.h b/include/gui/ConsumerBase.h
index ef0feab..d56fa89 100644
--- a/include/gui/ConsumerBase.h
+++ b/include/gui/ConsumerBase.h
@@ -76,6 +76,9 @@ public:
// when a new frame becomes available.
void setFrameAvailableListener(const wp<FrameAvailableListener>& listener);
+ // See IGraphicBufferConsumer::detachBuffer
+ status_t detachBuffer(int slot);
+
private:
ConsumerBase(const ConsumerBase&);
void operator=(const ConsumerBase&);