summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Greg Hackmann <ghackmann@google.com> 2012-07-10 14:39:29 -0700
committer Greg Hackmann <ghackmann@google.com> 2012-07-13 13:48:52 -0700
commitbb033ea3620a2c30f85a91986aa09a37960c8366 (patch)
tree4fd6ca4ef68a1c61c6d60d5b3d3ac421743dcd45
parentad0c8c3a3b510b345e1359bba29b9a90db797946 (diff)
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>
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
index b1cce2de3cbc..cbd883102707 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
@@ -231,10 +231,7 @@ public class TabletStatusBar extends BaseStatusBar implements
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
- // We use a pixel format of RGB565 for the status bar to save memory bandwidth and
- // to ensure that the layer can be handled by HWComposer. On some devices the
- // HWComposer is unable to handle SW-rendered RGBX_8888 layers.
- PixelFormat.RGB_565);
+ PixelFormat.OPAQUE);
// We explicitly leave FLAG_HARDWARE_ACCELERATED out of the flags. The status bar occupies
// very little screen real-estate and is updated fairly frequently. By using CPU rendering