diff options
author | Andreas Huber <andih@google.com> | 2010-07-07 06:57:27 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-07 06:57:27 -0700 |
commit | 3ecb233c9c121af3e68ece11705043b1dbef505b (patch) | |
tree | f55fad6a47e06cf2ac37d89eb463f3613e102138 /include | |
parent | 34bbea84b8374f5d0ebe72b0be4418ace984fac0 (diff) | |
parent | e2b20987c2652a984d10520ef3542d50d91119c5 (diff) | |
download | frameworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.zip frameworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.tar.gz frameworks_av-3ecb233c9c121af3e68ece11705043b1dbef505b.tar.bz2 |
Merge "An AHandler can now find its associated ALooper." into gingerbread
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; |