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

Commit bd4971b7 authored by ramindani's avatar ramindani Committed by Ram Indani
Browse files

API change to get the current transform in int and current crop

rectangle.

BUG=152621633
Test: Verified manually not affecting anything.
atest TextureViewCameraTest
atest TextureViewTest
atest TextureViewSnapshotTest
atest TextureViewStressTest
atest PixelCopyTest
atest BitmapTest
atest HardwareBitmapTests

Change-Id: I6df57f2c35ebc846acb1a927b5405e6e775a10d2
parent bc369907
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -149,12 +149,14 @@ void DeferredLayerUpdater::apply() {
            android_dataspace dataspace;
            int slot;
            bool newContent = false;
            ARect currentCrop;
            uint32_t outTransform;
            // Note: ASurfaceTexture_dequeueBuffer discards all but the last frame. This
            // is necessary if the SurfaceTexture queue is in synchronous mode, and we
            // cannot tell which mode it is in.
            AHardwareBuffer* hardwareBuffer = ASurfaceTexture_dequeueBuffer(
                    mSurfaceTexture.get(), &slot, &dataspace, transformMatrix, &newContent,
                    createReleaseFence, fenceWait, this);
                    mSurfaceTexture.get(), &slot, &dataspace, transformMatrix, &outTransform,
                    &newContent, createReleaseFence, fenceWait, this, &currentCrop);

            if (hardwareBuffer) {
                mCurrentSlot = slot;