Added format to WindowlessWindowManager SurfaceControls

Currently, format is used to check for opaque but is not sent to
SurfaceFlinger to use when creating the SurfaceControl.

Test: format is set for WindowlessWindowManager
Bug: 134365580
Change-Id: Ia0707e49fa635313d3d54ca825173c71d2b17f14
This commit is contained in:
chaviw
2019-10-25 11:33:23 -07:00
parent 89cc836c2e
commit 183aa5bc71

View File

@@ -93,8 +93,9 @@ class WindowlessWindowManager implements IWindowSession {
DisplayCutout.ParcelableWrapper outDisplayCutout, InputChannel outInputChannel,
InsetsState outInsetsState) {
final SurfaceControl.Builder b = new SurfaceControl.Builder(mSurfaceSession)
.setParent(mRootSurface)
.setName(attrs.getTitle().toString());
.setParent(mRootSurface)
.setFormat(attrs.format)
.setName(attrs.getTitle().toString());
final SurfaceControl sc = b.build();
synchronized (this) {
mStateForWindow.put(window.asBinder(), new State(sc, attrs));