Merge "libgui: Change detachNextBuffer to return sp<GB>"
This commit is contained in:
commit
b5c7ccfdc7
@ -179,7 +179,7 @@ public:
|
|||||||
virtual int unlockAndPost();
|
virtual int unlockAndPost();
|
||||||
|
|
||||||
virtual int connect(int api, const sp<IProducerListener>& listener);
|
virtual int connect(int api, const sp<IProducerListener>& listener);
|
||||||
virtual int detachNextBuffer(ANativeWindowBuffer** outBuffer,
|
virtual int detachNextBuffer(sp<GraphicBuffer>* outBuffer,
|
||||||
sp<Fence>* outFence);
|
sp<Fence>* outFence);
|
||||||
virtual int attachBuffer(ANativeWindowBuffer*);
|
virtual int attachBuffer(ANativeWindowBuffer*);
|
||||||
|
|
||||||
|
@ -651,7 +651,7 @@ int Surface::disconnect(int api) {
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Surface::detachNextBuffer(ANativeWindowBuffer** outBuffer,
|
int Surface::detachNextBuffer(sp<GraphicBuffer>* outBuffer,
|
||||||
sp<Fence>* outFence) {
|
sp<Fence>* outFence) {
|
||||||
ATRACE_CALL();
|
ATRACE_CALL();
|
||||||
ALOGV("Surface::detachNextBuffer");
|
ALOGV("Surface::detachNextBuffer");
|
||||||
@ -670,7 +670,7 @@ int Surface::detachNextBuffer(ANativeWindowBuffer** outBuffer,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
*outBuffer = buffer.get();
|
*outBuffer = buffer;
|
||||||
if (fence != NULL && fence->isValid()) {
|
if (fence != NULL && fence->isValid()) {
|
||||||
*outFence = fence;
|
*outFence = fence;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user