Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7969d91 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "Do not blend opaque windows." into ics-factoryrom

parents 781fea80 7036fdd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -636,7 +636,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
                final boolean isHwAccelerated = (mAttrs.flags &
                        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
                final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
                if (isHwAccelerated && mAttrs.format == PixelFormat.OPAQUE) {
                if (!PixelFormat.formatHasAlpha(mAttrs.format)) {
                    flags |= Surface.OPAQUE;
                }
                mSurface = new Surface(