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

Commit 267a2e83 authored by Dan Pasanen's avatar Dan Pasanen
Browse files

sf: fixes for HWC2

Change-Id: I8e7e595f8a0b370e3b886ea01265d63d1a0a967b
parent cd6c007f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -263,6 +263,10 @@ private:
    int mActiveConfig;
    // Panel's mount flip, H, V or 180 (HV)
    uint32_t mPanelMountFlip;
#ifdef USE_HWC2
    // current active color mode
    android_color_mode_t mActiveColorMode;
#endif
};

}; // namespace android
+3 −2
Original line number Diff line number Diff line
@@ -104,11 +104,12 @@ HWComposer* DisplayUtils::getHWCInstance(
#else
HWComposer* DisplayUtils::getHWCInstance(
                        const sp<SurfaceFlinger>& flinger) {
#ifdef QTI_BSP
    if(sUseExtendedImpls) {
        return new ExHWComposer(flinger);
    } else {
        return new HWComposer(flinger);
    }
#endif
    return new HWComposer(flinger);
}
#endif

+1 −1
Original line number Diff line number Diff line
@@ -3583,9 +3583,9 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
        uint32_t minLayerZ,maxLayerZ;
        bool useIdentityTransform;
        Transform::orientation_flags rotation;
        bool useReadPixels;
        status_t result;
        bool isLocalScreenshot;
        bool useReadPixels;
    public:
        MessageCaptureScreen(SurfaceFlinger* flinger,
                const sp<IBinder>& display,