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

Commit 1322fc54 authored by Amara Venkata Mastan Manoj Kumar's avatar Amara Venkata Mastan Manoj Kumar Committed by Linux Build Service Account
Browse files

sf: Refactoring of Virtual display to HWC

1. Updated Changes to DisplayDevice enumeration to support
   virtual display.
2. EventThread cleanup for proper mVSyncEvent access.

Change-Id: Id22ab98e03a6204f7fd863fda4db7ff11a177c7e
parent f6cb80b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,8 +56,8 @@ public:
        DISPLAY_ID_INVALID = -1,
        DISPLAY_PRIMARY     = HWC_DISPLAY_PRIMARY,
        DISPLAY_EXTERNAL    = HWC_DISPLAY_EXTERNAL,
        NUM_DISPLAY_TYPES   = HWC_NUM_DISPLAY_TYPES,
        DISPLAY_VIRTUAL     = HWC_NUM_DISPLAY_TYPES
        DISPLAY_VIRTUAL     = HWC_DISPLAY_VIRTUAL,
        NUM_DISPLAY_TYPES   = HWC_NUM_DISPLAY_TYPES
    };

    enum {
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public:
    };

    enum {
        MAX_DISPLAYS = HWC_NUM_DISPLAY_TYPES + 1
        MAX_DISPLAYS = HWC_NUM_DISPLAY_TYPES
    };

    HWComposer(
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ private:
    // protected by mLock
    SortedVector< wp<Connection> > mDisplayEventConnections;
    Vector< DisplayEventReceiver::Event > mPendingEvents;
    DisplayEventReceiver::Event mVSyncEvent[HWC_DISPLAY_TYPES_SUPPORTED];
    DisplayEventReceiver::Event mVSyncEvent[HWC_NUM_DISPLAY_TYPES];
    bool mUseSoftwareVSync;

    // for debugging