diff options
author | Dave Burke <daveburke@google.com> | 2011-10-18 23:00:08 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-18 23:00:08 -0700 |
commit | 818fb243572f8e1f408ba9fc35ef61bbedbd9ce1 (patch) | |
tree | c7bba5f68c5695d52b87834abd7c0d454354dee2 /services/surfaceflinger/Layer.cpp | |
parent | 6993a07d6212ef3076354235cfa3d0fdcb4e614a (diff) | |
parent | 8b29b65aeb420269ae4c76917cb0f7e66f18565f (diff) | |
download | frameworks_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.cpp | 12 |
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() { |