Merge "Fix error trap in SurfaceTexture Client"
This commit is contained in:
commit
349149b52a
@ -757,12 +757,16 @@ status_t SurfaceTextureClient::lock(
|
|||||||
ALOGW_IF(res, "failed locking buffer (handle = %p)",
|
ALOGW_IF(res, "failed locking buffer (handle = %p)",
|
||||||
backBuffer->handle);
|
backBuffer->handle);
|
||||||
|
|
||||||
mLockedBuffer = backBuffer;
|
if (res != 0) {
|
||||||
outBuffer->width = backBuffer->width;
|
err = INVALID_OPERATION;
|
||||||
outBuffer->height = backBuffer->height;
|
} else {
|
||||||
outBuffer->stride = backBuffer->stride;
|
mLockedBuffer = backBuffer;
|
||||||
outBuffer->format = backBuffer->format;
|
outBuffer->width = backBuffer->width;
|
||||||
outBuffer->bits = vaddr;
|
outBuffer->height = backBuffer->height;
|
||||||
|
outBuffer->stride = backBuffer->stride;
|
||||||
|
outBuffer->format = backBuffer->format;
|
||||||
|
outBuffer->bits = vaddr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user