am 1867a3cd: Merge "Do not blend opaque windows."
* commit '1867a3cde6411cfa27d0339c973d94fe0287d1a8': 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 &
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user