diff options
author | Andreas Huber <andih@google.com> | 2010-07-02 15:15:44 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-07-02 15:16:13 -0700 |
commit | e2b20987c2652a984d10520ef3542d50d91119c5 (patch) | |
tree | bb37d8c872710f99d2e358bf4a683f81fb6a2e0e /include | |
parent | cbb56d14dad2785baf7a723b43aa6f1da32dc51f (diff) | |
download | frameworks_av-e2b20987c2652a984d10520ef3542d50d91119c5.zip frameworks_av-e2b20987c2652a984d10520ef3542d50d91119c5.tar.gz frameworks_av-e2b20987c2652a984d10520ef3542d50d91119c5.tar.bz2 |
An AHandler can now find its associated ALooper.
Change-Id: Ic7087b8dcbc0d9abda272df0cb01b04b006f82ad
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/foundation/AHandler.h | 2 | ||||
-rw-r--r-- | include/media/stagefright/foundation/ALooperRoster.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/foundation/AHandler.h b/include/media/stagefright/foundation/AHandler.h index 9fccead..b008b54 100644 --- a/include/media/stagefright/foundation/AHandler.h +++ b/include/media/stagefright/foundation/AHandler.h @@ -34,6 +34,8 @@ struct AHandler : public RefBase { return mID; } + sp<ALooper> looper(); + protected: virtual void onMessageReceived(const sp<AMessage> &msg) = 0; diff --git a/include/media/stagefright/foundation/ALooperRoster.h b/include/media/stagefright/foundation/ALooperRoster.h index 1c6869c..8f6316e 100644 --- a/include/media/stagefright/foundation/ALooperRoster.h +++ b/include/media/stagefright/foundation/ALooperRoster.h @@ -34,6 +34,8 @@ struct ALooperRoster { void postMessage(const sp<AMessage> &msg, int64_t delayUs = 0); void deliverMessage(const sp<AMessage> &msg); + sp<ALooper> findLooper(ALooper::handler_id handlerID); + private: struct HandlerInfo { sp<ALooper> mLooper; |