We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 781fea8 + 7036fdd commit a7969d9Copy full SHA for a7969d9
services/java/com/android/server/wm/WindowState.java
@@ -636,7 +636,7 @@ Surface createSurfaceLocked() {
636
final boolean isHwAccelerated = (mAttrs.flags &
637
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
638
final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
639
- if (isHwAccelerated && mAttrs.format == PixelFormat.OPAQUE) {
+ if (!PixelFormat.formatHasAlpha(mAttrs.format)) {
640
flags |= Surface.OPAQUE;
641
}
642
mSurface = new Surface(
0 commit comments