diff options
| author | 2009-09-17 22:04:50 -0700 | |
|---|---|---|
| committer | 2009-09-20 17:08:45 -0700 | |
| commit | 1f0ffc46fdb391a4d5a096f6b8c4554937ca081f (patch) | |
| tree | f2520c83e88292384adb70bd2d8b03fdd58db92b /libs/surfaceflinger/Layer.cpp | |
| parent | 03268374fe506458e50b6c0ad6d333077883bb5e (diff) | |
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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp index 8dfc2cf766..5ff928439a 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; } |