diff options
| author | 2012-04-23 14:28:58 -0700 | |
|---|---|---|
| committer | 2012-04-23 20:06:02 -0700 | |
| commit | 24202f5676c32edeef6544cf36e06b9fc970dbde (patch) | |
| tree | bfeaa065a551e9b4fedd8357c83da1b9b469b206 /libs/gui/BufferQueue.cpp | |
| parent | a0db308c3d62301ae41b2e2bcf295c4ee4c7b08e (diff) | |
update the binder protocol for connect to match that of queueBuffer
indeed, connect and queueBuffer return the same data, so it's
easier to have them use the same protocol.
Change-Id: I4f9fa3be0a80c9ab0a7a4039b282ae843aab02e1
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
| -rw-r--r-- | libs/gui/BufferQueue.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp index a6403d4ea5..5941dc287f 100644 --- a/libs/gui/BufferQueue.cpp +++ b/libs/gui/BufferQueue.cpp @@ -651,8 +651,7 @@ void BufferQueue::cancelBuffer(int buf) { mDequeueCondition.broadcast(); } -status_t BufferQueue::connect(int api, - uint32_t* outWidth, uint32_t* outHeight, uint32_t* outTransform) { +status_t BufferQueue::connect(int api, QueueBufferOutput* output) { ATRACE_CALL(); ST_LOGV("connect: api=%d", api); Mutex::Autolock lock(mMutex); @@ -679,9 +678,7 @@ status_t BufferQueue::connect(int api, err = -EINVAL; } else { mConnectedApi = api; - *outWidth = mDefaultWidth; - *outHeight = mDefaultHeight; - *outTransform = mTransformHint; + output->inflate(mDefaultWidth, mDefaultHeight, mDefaultHeight); } break; default: |