From e09fd9e819c23dc90bca68375645e15544861330 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Wed, 17 Dec 2008 18:05:43 -0800 Subject: Code drop from //branches/cupcake/...@124589 --- libs/ui/Surface.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/ui/Surface.cpp') diff --git a/libs/ui/Surface.cpp b/libs/ui/Surface.cpp index 0a9aaad0b5..4ea9ae2edb 100644 --- a/libs/ui/Surface.cpp +++ b/libs/ui/Surface.cpp @@ -47,7 +47,7 @@ Surface::Surface(const sp& client, const ISurfaceFlingerClient::surface_data_t& data, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, bool owner) - : mClient(client), mSurface(surface), mMemoryType(data.type), + : mClient(client), mSurface(surface), mToken(data.token), mIdentity(data.identity), mFormat(format), mFlags(flags), mOwner(owner) { @@ -67,7 +67,6 @@ Surface::Surface(Surface const* rhs) mSurface = rhs->mSurface; mHeap[0] = rhs->mHeap[0]; mHeap[1] = rhs->mHeap[1]; - mMemoryType = rhs->mMemoryType; mFormat = rhs->mFormat; mFlags = rhs->mFlags; mSurfaceHeapBase[0] = rhs->mSurfaceHeapBase[0]; @@ -186,7 +185,6 @@ sp Surface::readFromParcel(Parcel* parcel) sp surface = interface_cast(parcel->readStrongBinder()); data.heap[0] = interface_cast(parcel->readStrongBinder()); data.heap[1] = interface_cast(parcel->readStrongBinder()); - data.type = parcel->readInt32(); data.token = parcel->readInt32(); data.identity = parcel->readInt32(); PixelFormat format = parcel->readInt32(); @@ -207,7 +205,6 @@ status_t Surface::writeToParcel(const sp& surface, Parcel* parcel) sp client; sp sur; sp heap[2]; - int type = 0; if (surface->isValid()) { token = surface->mToken; identity = surface->mIdentity; @@ -215,7 +212,6 @@ status_t Surface::writeToParcel(const sp& surface, Parcel* parcel) sur = surface->mSurface; heap[0] = surface->mHeap[0]; heap[1] = surface->mHeap[1]; - type = surface->mMemoryType; format = surface->mFormat; flags = surface->mFlags; } @@ -223,7 +219,6 @@ status_t Surface::writeToParcel(const sp& surface, Parcel* parcel) parcel->writeStrongBinder(sur!=0 ? sur->asBinder() : NULL); parcel->writeStrongBinder(heap[0]!=0 ? heap[0]->asBinder() : NULL); parcel->writeStrongBinder(heap[1]!=0 ? heap[1]->asBinder() : NULL); - parcel->writeInt32(type); parcel->writeInt32(token); parcel->writeInt32(identity); parcel->writeInt32(format); -- cgit v1.2.3-59-g8ed1b