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

Commit 451bd199 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am a50b51c0: Compatibility work around for bad graphics driver dependency.

* commit 'a50b51c0':
  Compatibility work around for bad graphics driver dependency.
parents 62eaafef a50b51c0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -67,6 +67,11 @@ public:
    // Get information about a display
    static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);

    // 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
@@ -543,6 +543,15 @@ status_t SurfaceComposerClient::getDisplayInfo(
    return ComposerService::getComposerService()->getDisplayInfo(display, info);
}

// 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);
}

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

ScreenshotClient::ScreenshotClient()