summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-06-06 15:21:44 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2011-06-06 15:21:44 -0700
commitc1cbf4525b4d12b6cb7908072d36c8f6ca819f5b (patch)
treece173c0b5701869e56fb967aa76185b4ab592131 /services/surfaceflinger/Layer.cpp
parente9d32283e4eca1ee27218ed66f754a694678ac6d (diff)
parent24855c09173a6caaec7dcedd0c2d7ce15121d39b (diff)
am 24855c09: merge various SF fixes from gingerbread to honeycomb-mr2 (DO NOT MERGE)
* commit '24855c09173a6caaec7dcedd0c2d7ce15121d39b': merge various SF fixes from gingerbread to honeycomb-mr2 (DO NOT MERGE)
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 517c335925a5..1d75a7b55cb5 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -77,6 +77,10 @@ Layer::~Layer()
}
}
+void Layer::destroy() const {
+ mFlinger->destroyLayer(this);
+}
+
status_t Layer::setToken(const sp<UserClient>& userClient,
SharedClient* sharedClient, int32_t token)
{
@@ -145,18 +149,6 @@ sp<LayerBaseClient::Surface> Layer::createSurface() const
return sur;
}
-status_t Layer::ditch()
-{
- // NOTE: Called from the main UI thread
-
- // the layer is not on screen anymore. free as much resources as possible
- mFreezeLock.clear();
-
- Mutex::Autolock _l(mLock);
- mWidth = mHeight = 0;
- return NO_ERROR;
-}
-
status_t Layer::setBuffers( uint32_t w, uint32_t h,
PixelFormat format, uint32_t flags)
{