get rid of Surface identity and token
we use the IBinder instead.
Change-Id: I4aa0b58869ba43f19980013620051e5a261b062d
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 8654f76..27921df 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -50,13 +50,11 @@
return (surface != 0) && surface->isValid();
}
bool isValid() {
- return mToken>=0 && mClient!=0;
+ return mSurface!=0 && mClient!=0;
}
static bool isSameSurface(
const sp<SurfaceControl>& lhs, const sp<SurfaceControl>& rhs);
- uint32_t getIdentity() const { return mIdentity; }
-
// release surface data from java
void clear();
@@ -87,8 +85,7 @@
SurfaceControl(
const sp<SurfaceComposerClient>& client,
- const sp<ISurface>& surface,
- const ISurfaceComposerClient::surface_data_t& data);
+ const sp<ISurface>& surface);
~SurfaceControl();
@@ -96,11 +93,8 @@
void destroy();
sp<SurfaceComposerClient> mClient;
- sp<ISurface> mSurface;
- SurfaceID mToken;
- uint32_t mIdentity;
+ sp<IBinder> mSurface;
mutable Mutex mLock;
-
mutable sp<Surface> mSurfaceData;
};