Skip to content

Commit 90fc905

Browse files
author
Jeff Brown
committed
Enable hardware acceleration for pointer location overlay.
Bug: 7256639 Change-Id: I790820b18365c126afc500a5ea3d222bc1ea2774
1 parent db21284 commit 90fc905

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,11 @@ private void enablePointerLocation() {
11401140
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
11411141
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
11421142
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
1143+
if (ActivityManager.isHighEndGfx()) {
1144+
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
1145+
lp.privateFlags |=
1146+
WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_HARDWARE_ACCELERATED;
1147+
}
11431148
lp.format = PixelFormat.TRANSLUCENT;
11441149
lp.setTitle("PointerLocation");
11451150
WindowManager wm = (WindowManager)

0 commit comments

Comments
 (0)