Skip to content

Commit bb033ea

Browse files
committed
Don't force RGB-565 for tablet status bar
RGBX-8888 is preferred on some devices because the HW composer doesn't support RGB-565. SurfaceFlinger can map PixelFormat.OPAQUE to RGB-565 or RGBX-8888 depending on the NO_RGBX_8888 flag. Change-Id: I6848b11f694188b606a5547b6dd386d933e30601 Signed-off-by: Greg Hackmann <ghackmann@google.com>
1 parent ad0c8c3 commit bb033ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,7 @@ private void addStatusBarWindow() {
231231
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
232232
| WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
233233
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
234-
// We use a pixel format of RGB565 for the status bar to save memory bandwidth and
235-
// to ensure that the layer can be handled by HWComposer. On some devices the
236-
// HWComposer is unable to handle SW-rendered RGBX_8888 layers.
237-
PixelFormat.RGB_565);
234+
PixelFormat.OPAQUE);
238235

239236
// We explicitly leave FLAG_HARDWARE_ACCELERATED out of the flags. The status bar occupies
240237
// very little screen real-estate and is updated fairly frequently. By using CPU rendering

0 commit comments

Comments
 (0)