diff options
| author | 2011-06-06 15:21:44 -0700 | |
|---|---|---|
| committer | 2011-06-06 15:21:44 -0700 | |
| commit | c1cbf4525b4d12b6cb7908072d36c8f6ca819f5b (patch) | |
| tree | ce173c0b5701869e56fb967aa76185b4ab592131 /services/surfaceflinger/Layer.cpp | |
| parent | e9d32283e4eca1ee27218ed66f754a694678ac6d (diff) | |
| parent | 24855c09173a6caaec7dcedd0c2d7ce15121d39b (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.cpp | 16 |
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) { |