summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorDave Burke <daveburke@google.com>2011-10-18 23:00:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-18 23:00:08 -0700
commit818fb243572f8e1f408ba9fc35ef61bbedbd9ce1 (patch)
treec7bba5f68c5695d52b87834abd7c0d454354dee2 /services/surfaceflinger/Layer.cpp
parent6993a07d6212ef3076354235cfa3d0fdcb4e614a (diff)
parent8b29b65aeb420269ae4c76917cb0f7e66f18565f (diff)
downloadframeworks_native-818fb243572f8e1f408ba9fc35ef61bbedbd9ce1.zip
frameworks_native-818fb243572f8e1f408ba9fc35ef61bbedbd9ce1.tar.gz
frameworks_native-818fb243572f8e1f408ba9fc35ef61bbedbd9ce1.tar.bz2
am 70ac412b: Merge "Add a LayerScreenshot" into ics-mr0
* commit '70ac412b2fe7be2507189a9fdfb30c43b36d56ac': Add a LayerScreenshot
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 944ac14..28552f6 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -88,16 +88,8 @@ void Layer::onFirstRef()
Layer::~Layer()
{
- class MessageDestroyGLState : public MessageBase {
- GLuint texture;
- public:
- MessageDestroyGLState(GLuint texture) : texture(texture) { }
- virtual bool handler() {
- glDeleteTextures(1, &texture);
- return true;
- }
- };
- mFlinger->postMessageAsync( new MessageDestroyGLState(mTextureName) );
+ mFlinger->postMessageAsync(
+ new SurfaceFlinger::MessageDestroyGLTexture(mTextureName) );
}
void Layer::onFrameQueued() {