summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-07-23 23:11:29 -0700
committerMathias Agopian <mathias@google.com>2012-07-24 00:09:35 -0700
commit921e6ac4b7610a178285898d191eb0e3afe906c0 (patch)
treedbf63e51bc59ea67d63fd17092bcb3e8d188f8e8 /services/surfaceflinger/Layer.cpp
parent36b285eac98cccdb9394c14ae2e6ace9f3d90966 (diff)
downloadframeworks_native-921e6ac4b7610a178285898d191eb0e3afe906c0.zip
frameworks_native-921e6ac4b7610a178285898d191eb0e3afe906c0.tar.gz
frameworks_native-921e6ac4b7610a178285898d191eb0e3afe906c0.tar.bz2
SurfaceFlinger cleanup
mostly refactored SurfaceFlinger.h, but also removed dead code. cleaned-up a few includes as well. Change-Id: Ib15f4ffe567912b61ee98aa076c6a283b72811b5
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index b2f2683..6617ea2 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -124,8 +124,7 @@ void Layer::onFirstRef()
Layer::~Layer()
{
- mFlinger->postMessageAsync(
- new SurfaceFlinger::MessageDestroyGLTexture(mTextureName) );
+ mFlinger->deleteTextureAsync(mTextureName);
}
void Layer::onFrameQueued() {