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

Commit cffc379a authored by Florian Mayer's avatar Florian Mayer
Browse files

Fix comment.

As far as I can tell, there is no HWC2::Device, and HWC2 is constructed (and passed these
members) from HWComposer.

Change-Id: Icc33fbcc60e9885fd1061ec762d209a8c3f4c365
parent db75bb3a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public:

    virtual hal::HWDisplayId getId() const = 0;
    virtual bool isConnected() const = 0;
    virtual void setConnected(bool connected) = 0; // For use by Device only
    virtual void setConnected(bool connected) = 0; // For use by HWComposer only
    virtual bool hasCapability(
            aidl::android::hardware::graphics::composer3::DisplayCapability) const = 0;
    virtual bool isVsyncPeriodSwitchSupported() const = 0;
@@ -246,7 +246,7 @@ public:
    // Other Display methods
    hal::HWDisplayId getId() const override { return mId; }
    bool isConnected() const override { return mIsConnected; }
    void setConnected(bool connected) override; // For use by Device only
    void setConnected(bool connected) override;
    bool hasCapability(aidl::android::hardware::graphics::composer3::DisplayCapability)
            const override EXCLUDES(mDisplayCapabilitiesMutex);
    bool isVsyncPeriodSwitchSupported() const override;
@@ -262,7 +262,7 @@ private:

    // Member variables

    // These are references to data owned by HWC2::Device, which will outlive
    // These are references to data owned by HWComposer, which will outlive
    // this HWC2::Display, so these references are guaranteed to be valid for
    // the lifetime of this object.
    android::Hwc2::Composer& mComposer;
@@ -380,7 +380,7 @@ public:
    hal::Error setBlockingRegion(const android::Region& region) override;

private:
    // These are references to data owned by HWC2::Device, which will outlive
    // These are references to data owned by HWComposer, which will outlive
    // this HWC2::Layer, so these references are guaranteed to be valid for
    // the lifetime of this object.
    android::Hwc2::Composer& mComposer;