Merge "Make snapshot surface relative to parent" into rvc-dev am: f813234a4e

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

Change-Id: I6731adf6f337de008eb5c3ff7ff0d04fdb9d7cb9
This commit is contained in:
Winson Chung
2020-06-05 04:34:50 +00:00
committed by Automerger Merge Worker

View File

@@ -391,6 +391,7 @@ class TaskSnapshotSurface implements StartingSurface {
frame = null;
mTmpSnapshotSize.set(0, 0, buffer.getWidth(), buffer.getHeight());
mTmpDstFrame.set(mFrame);
mTmpDstFrame.offsetTo(0, 0);
}
// Scale the mismatch dimensions to fill the task bounds