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

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

SF: pass animation presence info to HWC

Sometimes HWC needs to know whether there are animation layers
in composition. E.g., S3D needs to disable when there is screen
shot layer because it cannot correctly compose it as S3D format.
So always pass this kind of info to HWC no matter whether the
disable external animation property is set.

CRs-fixed: 1019601

Change-Id: I7445c2daf0a8e628af5ef0d4ad31f5346dc09988
parent f8c13fd7
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -209,10 +209,8 @@ void ExSurfaceFlinger::isfreezeSurfacePresent(bool& freezeSurfacePresent,
    /* Get the layers in the current drawing state */
    /* Get the layers in the current drawing state */
    const LayerVector& layers(mDrawingState.layersSortedByZ);
    const LayerVector& layers(mDrawingState.layersSortedByZ);
    const size_t layerCount = layers.size();
    const size_t layerCount = layers.size();
    /* Look for ScreenShotSurface in external layer list, only when
    /* Look for ScreenShotSurface in external layer list */
     * disable external rotation animation feature is enabled
    if(id != HWC_DISPLAY_PRIMARY) {
     */
    if(mDisableExtAnimation && (id != HWC_DISPLAY_PRIMARY)) {
        for (size_t i = 0 ; i < layerCount ; ++i) {
        for (size_t i = 0 ; i < layerCount ; ++i) {
            static int screenShotLen = strlen("ScreenshotSurface");
            static int screenShotLen = strlen("ScreenshotSurface");
            const sp<Layer>& layer(layers[i]);
            const sp<Layer>& layer(layers[i]);