diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-30 14:37:48 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-30 14:37:48 -0700 |
| commit | e7f03253f915fea0672710899b7a4284bebd5124 (patch) | |
| tree | 6ec2430c2fad115cc62ec64100f4861cc9a51f33 | |
| parent | b995b21d67cae4580ca0a01d8e5bea03bb1cfa6c (diff) | |
| parent | 4ccee716f8c3b81deda211e51f6c82493302647f (diff) | |
| download | frameworks_base-e7f03253f915fea0672710899b7a4284bebd5124.zip frameworks_base-e7f03253f915fea0672710899b7a4284bebd5124.tar.gz frameworks_base-e7f03253f915fea0672710899b7a4284bebd5124.tar.bz2 | |
Merge change 9070
* changes:
Adding resizeInput and setAttributes for overlay
| -rw-r--r-- | include/ui/Overlay.h | 6 | ||||
| -rw-r--r-- | libs/ui/Overlay.cpp | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/ui/Overlay.h b/include/ui/Overlay.h index acc9bea..a9ae1c4 100644 --- a/include/ui/Overlay.h +++ b/include/ui/Overlay.h @@ -82,10 +82,16 @@ public: /* release the overlay buffer and post it */ status_t queueBuffer(overlay_buffer_t buffer); + /* change the width and height of the overlay */ + status_t resizeInput(uint32_t width, uint32_t height); + status_t setCrop(uint32_t x, uint32_t y, uint32_t w, uint32_t h) ; status_t getCrop(uint32_t* x, uint32_t* y, uint32_t* w, uint32_t* h) ; + /* set the buffer attributes */ + status_t setParameter(int param, int value); + /* returns the address of a given buffer if supported, NULL otherwise. */ void* getBufferAddress(overlay_buffer_t buffer); diff --git a/libs/ui/Overlay.cpp b/libs/ui/Overlay.cpp index 4854d6a..3aa8950 100644 --- a/libs/ui/Overlay.cpp +++ b/libs/ui/Overlay.cpp @@ -59,6 +59,18 @@ status_t Overlay::queueBuffer(overlay_buffer_t buffer) return mOverlayData->queueBuffer(mOverlayData, buffer); } +status_t Overlay::resizeInput(uint32_t width, uint32_t height) +{ + if (mStatus != NO_ERROR) return mStatus; + return mOverlayData->resizeInput(mOverlayData, width, height); +} + +status_t Overlay::setParameter(int param, int value) +{ + if (mStatus != NO_ERROR) return mStatus; + return mOverlayData->setParameter(mOverlayData, param, value); +} + status_t Overlay::setCrop(uint32_t x, uint32_t y, uint32_t w, uint32_t h) { if (mStatus != NO_ERROR) return mStatus; |
