Added setBufferCrop to setGeometry
The crop being sent to SF is in layer space where the setGeometry API is getting buffer space crop. This breaks the API behavior so call setBufferCrop instead of setCrop Test: ASurfaceControlTest Fixes: 186266903 Change-Id: I8f2567aa41b9525c3c3dc08855d14d8a9b11c7e2
This commit is contained in:
parent
2e7c07e699
commit
9b2ac24f09
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user