Skip to content

HOLD: Make sure first layer is fullscreen

Since we use DRM interface we should deal with restriction where PRIMARY
layer dimension should match screen resolution (Even if hardware supports
another behavior).

Mark first layer as CLIENT if it is not full-screen.

The issue can be observed in AOSP Gallery application.
Before this fix NavigationBar was missing and strange artifacts appeared
on the screen.

Layers example (with this fix applied)

Display 0 HWC layers:
-------------------------------------------------------------------------------
 Layer name
           Z |  Comp Type |  Disp Frame (LTRB) |          Source Crop (LTRB)
-------------------------------------------------------------------------------
 SurfaceView - com.android.gallery3d/[...]roid.gallery3d.app.GalleryActivity#0
  rel     -2 |     CLIENT |   0    0 1024  552 |    0.0    0.0 1024.0  552.0
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - -
 com.android.gallery3d/com.android.gallery3d.app.GalleryActivity#0
  rel      0 |     DEVICE |   0  552 1024  600 |    0.0  552.0 1024.0  600.0
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - -
 NavigationBar0#0
  rel      0 |     DEVICE |   0  552 1024  600 |    0.0    0.0 1024.0   48.0
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - -
 Sprite#0
      331000 |     DEVICE | 286  218  308  246 |    0.0    0.0   22.0   28.0
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - -
Edited by Roman Stratiienko

Merge request reports