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

Commit 7b218c76 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "SurfaceTexture: Reset buffer values on disconnect." into ics

parents 4f2b42c0 a6ccff76
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -786,6 +786,13 @@ status_t SurfaceTexture::disconnect(int api) {
                mNextCrop.makeInvalid();
                mNextScalingMode = NATIVE_WINDOW_SCALING_MODE_FREEZE;
                mNextTransform = 0;
#ifdef QCOM_HARDWARE
                memcpy(mCurrentTransformMatrix, mtxIdentity,
                       sizeof(mCurrentTransformMatrix));
                mNextBufferInfo.width = 0;
                mNextBufferInfo.height = 0;
                mNextBufferInfo.format = 0;
#endif
                mDequeueCondition.signal();
            } else {
                ST_LOGE("disconnect: connected to another api (cur=%d, req=%d)",