Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee09840e authored by Vinu Deokaran's avatar Vinu Deokaran Committed by Linux Build Service Account
Browse files

base: adding support for tertiary display

ES2 platform supports 3 built-in displays. Adding support for
Tertiary display.

Change-Id: Id8833fedbe1655e4ed8d11d25bb5b559fa46893d
parent f003a8b5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -215,6 +215,12 @@ public class SurfaceControl {
     */
    public static final int BUILT_IN_DISPLAY_ID_HDMI = 1;

    /**
     * Built-in physical display id: Attached HDMI display.
     * Use only with {@link SurfaceControl#getBuiltInDisplay(int)}.
     */
    public static final int BUILT_IN_DISPLAY_ID_TERTIARY = 2;

    /* Display power modes * /

    /**
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ final class LocalDisplayAdapter extends DisplayAdapter {
    private static final int[] BUILT_IN_DISPLAY_IDS_TO_SCAN = new int[] {
            SurfaceControl.BUILT_IN_DISPLAY_ID_MAIN,
            SurfaceControl.BUILT_IN_DISPLAY_ID_HDMI,
            SurfaceControl.BUILT_IN_DISPLAY_ID_TERTIARY,
    };

    private final SparseArray<LocalDisplayDevice> mDevices =