OSDN Git Service

Revert "SurfaceTexture: call ConsumerBase::freeBufferLocked"
authorJamie Gennis <jgennis@google.com>
Mon, 20 Aug 2012 21:28:21 +0000 (14:28 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 20 Aug 2012 21:28:21 +0000 (14:28 -0700)
This reverts commit f8d33c652b930abbfb0722f3a2928cbc2ea71078

Change-Id: I1ff2e1cc85824a8fac1051f573d2931db81af511

include/gui/SurfaceTexture.h
libs/gui/SurfaceTexture.cpp

index 98741c5..0a83ce6 100644 (file)
@@ -248,7 +248,7 @@ private:
     // slot and destroy the EGLImage in that slot.  Otherwise it has no effect.
     //
     // This method must be called with mMutex locked.
-    virtual void freeBufferLocked(int slotIndex);
+    void freeBufferLocked(int slotIndex);
 
     // computeCurrentTransformMatrix computes the transform matrix for the
     // current texture.  It uses mCurrentTransform and the current GraphicBuffer
index 0579a3d..451ccc2 100644 (file)
@@ -710,7 +710,6 @@ void SurfaceTexture::freeBufferLocked(int slotIndex) {
         eglDestroyImageKHR(mEglDisplay, img);
     }
     mEglSlots[slotIndex].mEglImage = EGL_NO_IMAGE_KHR;
-    ConsumerBase::freeBufferLocked(slotIndex);
 }
 
 void SurfaceTexture::abandonLocked() {