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

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

Change-Id: Id803f0cdb523d0da0393c919052de00926c039c3