Merge "Do not blend opaque windows."
This commit is contained in:
@@ -636,7 +636,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
|||||||
final boolean isHwAccelerated = (mAttrs.flags &
|
final boolean isHwAccelerated = (mAttrs.flags &
|
||||||
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
|
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
|
||||||
final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
|
final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : mAttrs.format;
|
||||||
if (isHwAccelerated && mAttrs.format == PixelFormat.OPAQUE) {
|
if (!PixelFormat.formatHasAlpha(mAttrs.format)) {
|
||||||
flags |= Surface.OPAQUE;
|
flags |= Surface.OPAQUE;
|
||||||
}
|
}
|
||||||
mSurface = new Surface(
|
mSurface = new Surface(
|
||||||
|
|||||||
Reference in New Issue
Block a user