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: I5da47309c8bc22359f7f6b8c8f2cc949620f4223