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

Commit 1f03c501 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Enable compositor shadows for PIP

Exercise some of the code path while we wait for system health reviews to be finalized.

Test: go/wm-smoke
Change-Id: Ifddd2286ade9683a7d34a74e9075549f9605fa0b
parent fd6fb674
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -335,7 +335,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
        super(context);
        super(context);
        mLayoutInflater = LayoutInflater.from(context);
        mLayoutInflater = LayoutInflater.from(context);
        mRenderShadowsInCompositor = Settings.Global.getInt(context.getContentResolver(),
        mRenderShadowsInCompositor = Settings.Global.getInt(context.getContentResolver(),
                DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 0) != 0;
                DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 1) != 0;
    }
    }


    /**
    /**
+1 −1
Original line number Original line Diff line number Diff line
@@ -887,7 +887,7 @@ public class WindowManagerService extends IWindowManager.Stub


    private void setShadowRenderer() {
    private void setShadowRenderer() {
        mRenderShadowsInCompositor = Settings.Global.getInt(mContext.getContentResolver(),
        mRenderShadowsInCompositor = Settings.Global.getInt(mContext.getContentResolver(),
                DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 0) != 0;
                DEVELOPMENT_RENDER_SHADOWS_IN_COMPOSITOR, 1) != 0;
    }
    }


    PowerManager mPowerManager;
    PowerManager mPowerManager;