diff options
author | Rebecca Schultz Zavin <rebecca@android.com> | 2009-02-13 17:26:28 -0800 |
---|---|---|
committer | Rebecca Schultz Zavin <rebecca@android.com> | 2009-02-13 17:26:28 -0800 |
commit | 45fa004f64870bbdaecf448cc6c76d0baa6cd724 (patch) | |
tree | 1d0128370a94eb523f31150d094abffe5c1ba111 /libs | |
parent | 360211f7feff8472e082ed5a0675a0b37da74ce5 (diff) | |
download | frameworks_native-45fa004f64870bbdaecf448cc6c76d0baa6cd724.zip frameworks_native-45fa004f64870bbdaecf448cc6c76d0baa6cd724.tar.gz frameworks_native-45fa004f64870bbdaecf448cc6c76d0baa6cd724.tar.bz2 |
Add getBufferCount API to Overlay objects
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/Overlay.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/Overlay.cpp b/libs/ui/Overlay.cpp index c8e6168..b236edc 100644 --- a/libs/ui/Overlay.cpp +++ b/libs/ui/Overlay.cpp @@ -59,6 +59,12 @@ status_t Overlay::queueBuffer(overlay_buffer_t buffer) return mOverlayData->queueBuffer(mOverlayData, buffer); } +int32_t Overlay::getBufferCount() const +{ + if (mStatus != NO_ERROR) return mStatus; + return mOverlayData->getBufferCount(mOverlayData); +} + void* Overlay::getBufferAddress(overlay_buffer_t buffer) { if (mStatus != NO_ERROR) return NULL; |