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

Commit f8c13fd7 authored by Ray Zhang's avatar Ray Zhang Committed by Gerrit - the friendly Code Review server
Browse files

SF: Add QTI_S3D macro to enable/disable S3D GPU compostiton

S3D GPU compostion only supported on SDM platform, add QTI_S3D
macro to disable S3D GPU compostion on Non-SDM platform.

Change-Id: Ifd718eb0006f7194c0fd29b89094e733b241ad02
parent a8cb3e34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ bool ExLayer::canAllowGPUForProtected() const {
    }
}

#ifdef QTI_BSP
#if (defined QTI_BSP) && (defined QTI_S3D)
uint32_t ExLayer::getS3dFormat(const sp<const DisplayDevice>& hw) const {
    uint32_t s3d_fmt = HWC_S3DMODE_NONE;
    const sp<GraphicBuffer>& activeBuffer(mActiveBuffer);
+1 −1
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ void ExSurfaceFlinger::drawWormHoleIfRequired(HWComposer::LayerListIterator& cur
    }
}

#ifdef QTI_BSP
#if (defined QTI_BSP) && (defined QTI_S3D)
bool ExSurfaceFlinger::isS3DLayerPresent(const sp<const DisplayDevice>& hw) {
    const Vector< sp<Layer> >& visibleLayersSortedByZ =
                hw->getVisibleLayersSortedByZ();