diff options
-rw-r--r-- | include/ui/Overlay.h | 1 | ||||
-rw-r--r-- | libs/ui/Overlay.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ui/Overlay.h b/include/ui/Overlay.h index f8454fd..66514b4 100644 --- a/include/ui/Overlay.h +++ b/include/ui/Overlay.h @@ -91,6 +91,7 @@ public: int32_t getFormat() const; int32_t getWidthStride() const; int32_t getHeightStride() const; + int32_t getBufferCount() const; status_t getStatus() const; private: 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; |