diff options
| author | 2010-03-01 16:09:43 -0800 | |
|---|---|---|
| committer | 2010-03-01 18:34:50 -0800 | |
| commit | 5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 (patch) | |
| tree | 6ba3c3a0a6a5de37d65c07690de84080a91db3b3 /libs/surfaceflinger/LayerBase.cpp | |
| parent | 69f22feb8540576d2a2e9d32f9c86ebbbf309409 (diff) | |
Added a name to Surface created by SurfaceFlinger
Updated the window manager to use this new facility.
Surfaces name are now printed by "dumpsys".
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBase.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp index a3d293f17cdc..b0109ca29d5d 100644 --- a/libs/surfaceflinger/LayerBase.cpp +++ b/libs/surfaceflinger/LayerBase.cpp @@ -728,6 +728,14 @@ LayerBaseClient::~LayerBaseClient() delete lcblk; } +void LayerBaseClient::setName(const String8& name) { + mName = name; +} + +String8 LayerBaseClient::getName() const { + return mName; +} + int32_t LayerBaseClient::serverIndex() const { sp<Client> client(this->client.promote()); |