Skip to content

Commit a7969d9

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "Do not blend opaque windows." into ics-factoryrom
2 parents 781fea8 + 7036fdd commit a7969d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/wm/WindowState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ Surface createSurfaceLocked() {
636636
final boolean isHwAccelerated = (mAttrs.flags &
637637
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
638638
final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
639-
if (isHwAccelerated && mAttrs.format == PixelFormat.OPAQUE) {
639+
if (!PixelFormat.formatHasAlpha(mAttrs.format)) {
640640
flags |= Surface.OPAQUE;
641641
}
642642
mSurface = new Surface(

0 commit comments

Comments
 (0)