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

Commit 669a8ca6 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

Revert "Revert "Compatibility work around for bad graphics driver dependency.""

This reverts commit 38b65726.

Change-Id: If350d73839f1ed5e01af4299d44837e619d14d66
parent ba20ade4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -73,6 +73,10 @@ public:

    /* triggers screen on and waits for it to complete */
    static void unblankDisplay(const sp<IBinder>& display);
    // TODO: Remove me.  Do not use.
    // This is a compatibility shim for one product whose drivers are depending on
    // this legacy function (when they shouldn't).
    static status_t getDisplayInfo(int32_t displayId, DisplayInfo* info);

    // ------------------------------------------------------------------------
    // surface creation / destruction
+9 −0
Original line number Diff line number Diff line
@@ -617,6 +617,15 @@ void SurfaceComposerClient::unblankDisplay(const sp<IBinder>& token) {
    ComposerService::getComposerService()->unblank(token);
}

// TODO: Remove me.  Do not use.
// This is a compatibility shim for one product whose drivers are depending on
// this legacy function (when they shouldn't).
status_t SurfaceComposerClient::getDisplayInfo(
        int32_t displayId, DisplayInfo* info)
{
    return getDisplayInfo(getBuiltInDisplay(displayId), info);
}

// ----------------------------------------------------------------------------

status_t ScreenshotClient::capture(