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
This commit is contained in:
Tracy Zhou
2020-03-06 15:24:38 -08:00
parent 606626e020
commit 417fa7eac8

View File

@@ -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);