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

This commit is contained in:
Winson Chung
2020-06-05 04:24:37 +00:00
committed by Android (Google) Code Review

View File

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