Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8d33c65 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

SurfaceTexture: call ConsumerBase::freeBufferLocked

This change fixes SurfaceTexture::freeBufferLocked so that it calls the base
class implementation.

Change-Id: I45d76fb2eb02c1fa6e4e917823ead83e2086bd15
parent 2c7eb92b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -248,7 +248,7 @@ private:
    // slot and destroy the EGLImage in that slot.  Otherwise it has no effect.
    // slot and destroy the EGLImage in that slot.  Otherwise it has no effect.
    //
    //
    // This method must be called with mMutex locked.
    // This method must be called with mMutex locked.
    void freeBufferLocked(int slotIndex);
    virtual void freeBufferLocked(int slotIndex);


    // computeCurrentTransformMatrix computes the transform matrix for the
    // computeCurrentTransformMatrix computes the transform matrix for the
    // current texture.  It uses mCurrentTransform and the current GraphicBuffer
    // current texture.  It uses mCurrentTransform and the current GraphicBuffer
+1 −0
Original line number Original line Diff line number Diff line
@@ -710,6 +710,7 @@ void SurfaceTexture::freeBufferLocked(int slotIndex) {
        eglDestroyImageKHR(mEglDisplay, img);
        eglDestroyImageKHR(mEglDisplay, img);
    }
    }
    mEglSlots[slotIndex].mEglImage = EGL_NO_IMAGE_KHR;
    mEglSlots[slotIndex].mEglImage = EGL_NO_IMAGE_KHR;
    ConsumerBase::freeBufferLocked(slotIndex);
}
}


void SurfaceTexture::abandonLocked() {
void SurfaceTexture::abandonLocked() {