diff options
Diffstat (limited to 'services/surfaceflinger/Client.h')
-rw-r--r-- | services/surfaceflinger/Client.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/services/surfaceflinger/Client.h b/services/surfaceflinger/Client.h index 2a9825c687..7328c224e9 100644 --- a/services/surfaceflinger/Client.h +++ b/services/surfaceflinger/Client.h @@ -38,8 +38,9 @@ class SurfaceFlinger; class Client : public BnSurfaceComposerClient { public: - explicit Client(const sp<SurfaceFlinger>& flinger); - ~Client(); + explicit Client(const sp<SurfaceFlinger>& flinger); + Client(const sp<SurfaceFlinger>& flinger, const sp<Layer>& parentLayer); + ~Client(); status_t initCheck() const; @@ -50,6 +51,8 @@ public: sp<Layer> getLayerUser(const sp<IBinder>& handle) const; + void setParentLayer(const sp<Layer>& parentLayer); + private: // ISurfaceComposerClient interface virtual status_t createSurface( @@ -76,6 +79,8 @@ private: // protected by mLock DefaultKeyedVector< wp<IBinder>, wp<Layer> > mLayers; + wp<Layer> mParentLayer; + // thread-safe mutable Mutex mLock; }; |