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

Commit 5e343ea8 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "Hold onto linked binder."

parents 6c151787 a904bb95
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -494,9 +494,9 @@ void SurfaceFlinger::bootFinished()

    // wait patiently for the window manager death
    const String16 name("window");
    sp<IBinder> window(defaultServiceManager()->getService(name));
    if (window != 0) {
        window->linkToDeath(static_cast<IBinder::DeathRecipient*>(this));
    mWindowManager = defaultServiceManager()->getService(name);
    if (mWindowManager != 0) {
        mWindowManager->linkToDeath(static_cast<IBinder::DeathRecipient*>(this));
    }

    if (mVrFlinger) {
+3 −0
Original line number Diff line number Diff line
@@ -892,6 +892,9 @@ private:
    // either AID_GRAPHICS or AID_SYSTEM.
    status_t CheckTransactCodeCredentials(uint32_t code);

    // to linkToDeath
    sp<IBinder> mWindowManager;

    std::unique_ptr<dvr::VrFlinger> mVrFlinger;
    std::atomic<bool> mVrFlingerRequestsDisplay;
    static bool useVrFlinger;