summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-17 22:04:50 -0700
committerMathias Agopian <mathias@google.com>2009-09-20 17:08:45 -0700
commit1f0ffc46fdb391a4d5a096f6b8c4554937ca081f (patch)
treef2520c83e88292384adb70bd2d8b03fdd58db92b /libs/surfaceflinger/Layer.cpp
parent03268374fe506458e50b6c0ad6d333077883bb5e (diff)
downloadframeworks_native-1f0ffc46fdb391a4d5a096f6b8c4554937ca081f.zip
frameworks_native-1f0ffc46fdb391a4d5a096f6b8c4554937ca081f.tar.gz
frameworks_native-1f0ffc46fdb391a4d5a096f6b8c4554937ca081f.tar.bz2
workaround for [2113743] Sholes: frozen then runtime restart going to list view
Diffstat (limited to 'libs/surfaceflinger/Layer.cpp')
-rw-r--r--libs/surfaceflinger/Layer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp
index 8dfc2cf..5ff9284 100644
--- a/libs/surfaceflinger/Layer.cpp
+++ b/libs/surfaceflinger/Layer.cpp
@@ -88,7 +88,6 @@ void Layer::destroy()
mBuffers[i].clear();
mWidth = mHeight = 0;
}
- mSurface.clear();
}
sp<LayerBaseClient::Surface> Layer::createSurface() const
@@ -99,7 +98,8 @@ sp<LayerBaseClient::Surface> Layer::createSurface() const
status_t Layer::ditch()
{
// the layer is not on screen anymore. free as much resources as possible
- destroy();
+ //destroy();
+ mSurface.clear();
return NO_ERROR;
}