From b2fd4665e66fe81969f1f07fd724c6f68dd8f7f1 Mon Sep 17 00:00:00 2001 From: Fred Quintana Date: Tue, 11 Aug 2009 20:49:35 -0700 Subject: Revert "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050. --- libs/ui/ISurface.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libs/ui/ISurface.cpp') diff --git a/libs/ui/ISurface.cpp b/libs/ui/ISurface.cpp index b78e8b5ab5..9fbae1ebaf 100644 --- a/libs/ui/ISurface.cpp +++ b/libs/ui/ISurface.cpp @@ -71,11 +71,10 @@ public: { } - virtual sp getBuffer(int usage) + virtual sp getBuffer() { Parcel data, reply; data.writeInterfaceToken(ISurface::getInterfaceDescriptor()); - data.writeInt32(usage); remote()->transact(GET_BUFFER, data, &reply); sp buffer = new SurfaceBuffer(reply); return buffer; @@ -136,8 +135,7 @@ status_t BnSurface::onTransact( switch(code) { case GET_BUFFER: { CHECK_INTERFACE(ISurface, data, reply); - int usage = data.readInt32(); - sp buffer(getBuffer(usage)); + sp buffer(getBuffer()); return SurfaceBuffer::writeToParcel(reply, buffer.get()); } case REGISTER_BUFFERS: { -- cgit v1.2.3-59-g8ed1b