diff options
author | 2009-07-08 17:26:05 -0700 | |
---|---|---|
committer | 2009-07-08 17:26:05 -0700 | |
commit | 6698d16b951370a0cc6aa87bcd2ca91122a57410 (patch) | |
tree | 7a411a1832eec82df97587fddc64b93b9fe909ff /libs/ui/Camera.cpp | |
parent | c3f60ddaeadb69c1e85198e609e575f55ecc28ac (diff) | |
parent | 04c7d0f842ae1d3b52c426fccf7178861493431d (diff) |
resolved conflicts for merge of 04c7d0f8 to master
Diffstat (limited to 'libs/ui/Camera.cpp')
-rw-r--r-- | libs/ui/Camera.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ui/Camera.cpp b/libs/ui/Camera.cpp index 0aa77ffff614..12a7725010f3 100644 --- a/libs/ui/Camera.cpp +++ b/libs/ui/Camera.cpp @@ -310,6 +310,19 @@ void Camera::dataCallback(int32_t msgType, const sp<IMemory>& dataPtr) } } +// callback from camera service when timestamped frame is ready +void Camera::dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& dataPtr) +{ + sp<CameraListener> listener; + { + Mutex::Autolock _l(mLock); + listener = mListener; + } + if (listener != NULL) { + listener->postDataTimestamp(timestamp, msgType, dataPtr); + } +} + void Camera::binderDied(const wp<IBinder>& who) { LOGW("ICamera died"); notifyCallback(CAMERA_MSG_ERROR, CAMERA_ERROR_SERVER_DIED, 0); |