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

Commit 08ff0804 authored by Kriti Dang's avatar Kriti Dang Committed by Android (Google) Code Review
Browse files

Merge "Add getHdrOutputConversionSupport to SurfaceComposerClient."

parents bb0ed627 afd1fda0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2635,6 +2635,12 @@ status_t SurfaceComposerClient::setHdrConversionStrategy(
    return statusTFromBinderStatus(status);
}

status_t SurfaceComposerClient::getHdrOutputConversionSupport(bool* isSupported) {
    binder::Status status =
            ComposerServiceAIDL::getComposerService()->getHdrOutputConversionSupport(isSupported);
    return statusTFromBinderStatus(status);
}

status_t SurfaceComposerClient::setOverrideFrameRate(uid_t uid, float frameRate) {
    binder::Status status =
            ComposerServiceAIDL::getComposerService()->setOverrideFrameRate(uid, frameRate);
+2 −0
Original line number Diff line number Diff line
@@ -194,6 +194,8 @@ public:
    static status_t getHdrConversionCapabilities(std::vector<gui::HdrConversionCapability>*);
    // Sets the HDR conversion strategy for the device
    static status_t setHdrConversionStrategy(gui::HdrConversionStrategy hdrConversionStrategy);
    // Returns whether HDR conversion is supported by the device.
    static status_t getHdrOutputConversionSupport(bool* isSupported);

    // Sets the frame rate of a particular app (uid). This is currently called
    // by GameManager.