summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author ramindani <ramindani@google.com> 2021-08-06 22:38:45 +0000
committer Ram Indani <ramindani@google.com> 2021-08-06 23:27:32 +0000
commitbd4971b773ce4a4058a8ebf3da9dd051eb315d6e (patch)
tree6ea8b21ec1ec04e93e0fd64dd125664a4ff259dd
parentbc3699071421eeb17b81619a062c6d60715f989f (diff)
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
-rw-r--r--libs/hwui/DeferredLayerUpdater.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/hwui/DeferredLayerUpdater.cpp b/libs/hwui/DeferredLayerUpdater.cpp
index 8d112d1c64bf..2b86b1eb7542 100644
--- a/libs/hwui/DeferredLayerUpdater.cpp
+++ b/libs/hwui/DeferredLayerUpdater.cpp
@@ -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;