From 285dbde2e0cd0057be070ded3be8f5f453147edc Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 1 Mar 2010 16:09:43 -0800 Subject: Added a name to Surface created by SurfaceFlinger Updated the window manager to use this new facility. Surfaces name are now printed by "dumpsys". --- libs/surfaceflinger/LayerBase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/surfaceflinger/LayerBase.cpp') 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(this->client.promote()); -- cgit v1.2.3-59-g8ed1b