summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-05-14 15:55:11 -0700
committerJohn Reck <jreck@google.com>2015-05-14 15:55:11 -0700
commite478305181bb8dc8706361bc702256fe73f958de (patch)
tree2c101236b4eae9c4260eb0db43eaf2219feb82ce /libs
parentc921ce268155e8e1d75bd423514bb5a3ee363440 (diff)
downloadframeworks_native-e478305181bb8dc8706361bc702256fe73f958de.zip
frameworks_native-e478305181bb8dc8706361bc702256fe73f958de.tar.gz
frameworks_native-e478305181bb8dc8706361bc702256fe73f958de.tar.bz2
Add ConsumerBase::isAbandoned
Bug: 20105644 Change-Id: I21526b5397ea51a15500c44a99daa9d75fc4ea67
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/ConsumerBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp
index 072ab44..0e42daf 100644
--- a/libs/gui/ConsumerBase.cpp
+++ b/libs/gui/ConsumerBase.cpp
@@ -171,6 +171,11 @@ void ConsumerBase::abandonLocked() {
mConsumer.clear();
}
+bool ConsumerBase::isAbandoned() {
+ Mutex::Autolock _l(mMutex);
+ return mAbandoned;
+}
+
void ConsumerBase::setFrameAvailableListener(
const wp<FrameAvailableListener>& listener) {
CB_LOGV("setFrameAvailableListener");