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

Commit aad624f2 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Added setBufferCrop to setGeometry" into sc-dev am: 121f71d4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14330723

Change-Id: I08acca72bc5a08de35560103d08d35d5b32e00d6
parents 13f7ac9e 121f71d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -449,7 +449,7 @@ void ASurfaceTransaction_setGeometry(ASurfaceTransaction* aSurfaceTransaction,
    sp<SurfaceControl> surfaceControl = ASurfaceControl_to_SurfaceControl(aSurfaceControl);
    Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction);

    transaction->setCrop(surfaceControl, sourceRect);
    transaction->setBufferCrop(surfaceControl, sourceRect);

    float dsdx = (destination.right - destination.left) /
            static_cast<float>(sourceRect.right - sourceRect.left);