From 417fa7eac8115c1f090ee5fd244998e97a6484fb Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Fri, 6 Mar 2020 15:24:38 -0800 Subject: Turn on hardware acceleration flag on the windowless window we render Bug: 150224413 Test: Manual. Make sure universal smartspace still works as intended. Change-Id: I9ed867ca1612b5c016e97765ebf077051c5da23c --- .../com/android/systemui/shared/system/SurfaceViewRequestReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/system/SurfaceViewRequestReceiver.java b/packages/SystemUI/shared/src/com/android/systemui/shared/system/SurfaceViewRequestReceiver.java index 8809d832d72d..7cfa289595e3 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/system/SurfaceViewRequestReceiver.java +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/system/SurfaceViewRequestReceiver.java @@ -62,7 +62,7 @@ public class SurfaceViewRequestReceiver { surfaceControl.getWidth(), surfaceControl.getHeight(), WindowManager.LayoutParams.TYPE_APPLICATION, - 0, + WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, mOpacity); mSurfaceControlViewHost.addView(view, layoutParams); -- cgit v1.2.3-59-g8ed1b