am 220ef10c
: Merge "SurfaceTexture: call ConsumerBase::freeBufferLocked" into jb-mr1-dev
* commit '220ef10c5fe44df0ff3898de06028975995a34e4': SurfaceTexture: call ConsumerBase::freeBufferLocked
This commit is contained in:
commit
823b33c7e1
@ -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.
|
||||
void freeBufferLocked(int slotIndex);
|
||||
virtual void freeBufferLocked(int slotIndex);
|
||||
|
||||
// computeCurrentTransformMatrix computes the transform matrix for the
|
||||
// current texture. It uses mCurrentTransform and the current GraphicBuffer
|
||||
|
@ -710,6 +710,7 @@ void SurfaceTexture::freeBufferLocked(int slotIndex) {
|
||||
eglDestroyImageKHR(mEglDisplay, img);
|
||||
}
|
||||
mEglSlots[slotIndex].mEglImage = EGL_NO_IMAGE_KHR;
|
||||
ConsumerBase::freeBufferLocked(slotIndex);
|
||||
}
|
||||
|
||||
void SurfaceTexture::abandonLocked() {
|
||||
|
Loading…
Reference in New Issue
Block a user