diff options
| author | 2011-09-16 17:31:54 -0700 | |
|---|---|---|
| committer | 2011-09-22 17:50:05 -0700 | |
| commit | a249f2d11249ff37c48119020b797ad437ddef2c (patch) | |
| tree | dd64a4505571a38b78ab8d4fdb6a940991370031 /services/surfaceflinger/Layer.cpp | |
| parent | fa28c35c21d1bf8b38f541758c291bc17a2d7270 (diff) | |
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
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index f85ce7fd09..aa16d23dd8 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<ISurface> Layer::createSurface() { class BSurface : public BnSurface, public LayerCleaner { |