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
commit4a06bb4f3355b0ef2b76aa883704da9d154c44ae (patch)
tree190a580772bf1cf941bde1bb924ba6a6f54f7619 /libs/surfaceflinger/Layer.cpp
parent0647b580aa7874311fc77b659e4f646750ddd74e (diff)
downloadframeworks_base-4a06bb4f3355b0ef2b76aa883704da9d154c44ae.zip
frameworks_base-4a06bb4f3355b0ef2b76aa883704da9d154c44ae.tar.gz
frameworks_base-4a06bb4f3355b0ef2b76aa883704da9d154c44ae.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;
}