summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/Client.h')
-rw-r--r--services/surfaceflinger/Client.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/services/surfaceflinger/Client.h b/services/surfaceflinger/Client.h
index d6c6931..84e649f 100644
--- a/services/surfaceflinger/Client.h
+++ b/services/surfaceflinger/Client.h
@@ -30,7 +30,7 @@ namespace android {
// ---------------------------------------------------------------------------
-class LayerBaseClient;
+class Layer;
class SurfaceFlinger;
// ---------------------------------------------------------------------------
@@ -44,20 +44,21 @@ public:
status_t initCheck() const;
// protected by SurfaceFlinger::mStateLock
- size_t attachLayer(const sp<LayerBaseClient>& layer);
+ void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer);
- void detachLayer(const LayerBaseClient* layer);
+ void detachLayer(const Layer* layer);
- sp<LayerBaseClient> getLayerUser(int32_t i) const;
+ sp<Layer> getLayerUser(const sp<IBinder>& handle) const;
private:
// ISurfaceComposerClient interface
- virtual sp<ISurface> createSurface(
- surface_data_t* params, const String8& name,
- uint32_t w, uint32_t h,PixelFormat format,
- uint32_t flags);
+ virtual status_t createSurface(
+ const String8& name,
+ uint32_t w, uint32_t h,PixelFormat format, uint32_t flags,
+ sp<IBinder>* handle,
+ sp<IGraphicBufferProducer>* gbp);
- virtual status_t destroySurface(SurfaceID surfaceId);
+ virtual status_t destroySurface(const sp<IBinder>& handle);
virtual status_t onTransact(
uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags);
@@ -66,8 +67,7 @@ private:
sp<SurfaceFlinger> mFlinger;
// protected by mLock
- DefaultKeyedVector< size_t, wp<LayerBaseClient> > mLayers;
- size_t mNameGenerator;
+ DefaultKeyedVector< wp<IBinder>, wp<Layer> > mLayers;
// thread-safe
mutable Mutex mLock;