Add eLayerIsDisplayDecoration flag
When this flag is set on a BufferLayer, it should use Composition.DISPLAY_DECORATION. The intent is that it will be set to true once on a SurfaceControl for the ScreenDecorations, and it will remain true, regardless of the currently used PixelFormat. When the PixelFormat changes (e.g. from A8 to RGBA8888 to accommodate the privacy dot), the HWC may change how it treats the layer. Only respect the new flag if the caller has the INTERNAL_SYSTEM_WINDOW permission. Bug: 193170859 Test: manual Change-Id: I1da03a88fb642fa775c192627f20459cae694951
Loading
Please register or sign in to comment