Merge "SurfaceControlViewHost: Enable HARDWARE_ACCLERATION by default" into rvc-dev

This commit is contained in:
Rob Carr
2020-03-25 19:44:16 +00:00
committed by Android (Google) Code Review

View File

@@ -192,6 +192,7 @@ public class SurfaceControlViewHost {
final WindowManager.LayoutParams lp =
new WindowManager.LayoutParams(width, height,
WindowManager.LayoutParams.TYPE_APPLICATION, 0, PixelFormat.TRANSPARENT);
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
setView(view, lp);
}