From 5b315da4e8a3746376af480c8fe01f98cbc34b33 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 16 Sep 2011 17:31:54 -0700 Subject: SurfaceFlinger: set layer names on SurfaceTextures This change sets the SurfaceTexture name string to match that of the layer to which it belongs. Change-Id: Ib302d79e916a36ab1e54cb9ff477c3b857bd957b --- services/surfaceflinger/Layer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'services/surfaceflinger/Layer.cpp') diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index f85ce7fd0949..aa16d23dd829 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -112,6 +112,11 @@ void Layer::onRemoved() mSurfaceTexture->abandon(); } +void Layer::setName(const String8& name) { + LayerBase::setName(name); + mSurfaceTexture->setName(name); +} + sp Layer::createSurface() { class BSurface : public BnSurface, public LayerCleaner { -- cgit v1.2.3-59-g8ed1b