Merge "Allow offscreen mirrored layers to be captured." into sc-v2-dev am: ebff6bd2a8

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

Change-Id: I202573a959fbb3f92dd72bf1b32218012499f020