Merge "Optimize offscreen layer management" into sc-dev am: 2b7d5cea13 am: c2466b1b5a

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

Change-Id: Iafc14a04924c1e9b3d607e4c6b9c410ef3aa8d01