Merge "Skip caching if any layer has protected contents" into sc-dev am: 963026b842

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

Change-Id: Ia99c5ec624a6581b4032b493d0a8d0d7b64c4134