diff options
| author | 2010-03-01 16:09:43 -0800 | |
|---|---|---|
| committer | 2010-03-01 18:34:50 -0800 | |
| commit | 285dbde2e0cd0057be070ded3be8f5f453147edc (patch) | |
| tree | b9b6c52aae0b3dffef51d7113713ffad60a6a365 /libs/surfaceflinger/LayerBase.cpp | |
| parent | 46a26c63ed0a4322551ae0d8bac3c558d45d20dc (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 a3d293f17c..b0109ca29d 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()); |